<p dir="auto">While using special permissions it is necessary to use "allow flags" to properly access network, files, etc. However while using this flags on the CLI it is necessary to use this flags before the file we're going to run, otherwise it won't apply them.</p>
<p dir="auto">Ex:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42647963/70447360-95c92900-1a6c-11ea-92dc-bd4119665102.png"><img src="https://user-images.githubusercontent.com/42647963/70447360-95c92900-1a6c-11ea-92dc-bd4119665102.png" alt="deno-code" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42647963/70447397-a083be00-1a6c-11ea-8cf4-6767b33db936.png"><img src="https://user-images.githubusercontent.com/42647963/70447397-a083be00-1a6c-11ea-8cf4-6767b33db936.png" alt="error flag" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42647963/70447421-a8dbf900-1a6c-11ea-80df-4e1e46b7babd.png"><img src="https://user-images.githubusercontent.com/42647963/70447421-a8dbf900-1a6c-11ea-80df-4e1e46b7babd.png" alt="working flag" style="max-width: 100%;"></a></p>
<p dir="auto">I can understand this behavior might be intended but it can be really annoying, since it differs from the common use of flags on CLI commands accross different OS environments. Also it differs from the examples provided about Deno Install (which I have not personally used).</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42647963/70447664-1ab44280-1a6d-11ea-96fb-2eff17c7feea.png"><img src="https://user-images.githubusercontent.com/42647963/70447664-1ab44280-1a6d-11ea-96fb-2eff17c7feea.png" alt="deno install error" style="max-width: 100%;"></a></p>
<p dir="auto">I've run into this issue(?) while using v0.25 on Windows, Linux(Manjaro) and Linux(ElementaryOS).</p>
<p dir="auto">The order of the CLI flags should not be of importance. Check this example</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6124435/62263509-c9d87180-b41c-11e9-8da9-b683316e0ad7.png"><img src="https://user-images.githubusercontent.com/6124435/62263509-c9d87180-b41c-11e9-8da9-b683316e0ad7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Shouldn't</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" deno test.ts --config tsconfig.json"><pre class="notranslate"><code class="notranslate"> deno test.ts --config tsconfig.json
</code></pre></div>
<p dir="auto">be the same as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno --config tsconfig.json test.ts"><pre class="notranslate"><code class="notranslate">deno --config tsconfig.json test.ts
</code></pre></div>
<p dir="auto">or maybe I'm wrong?</p>