<p dir="auto">This behavior seems very weird to me.</p>
<p dir="auto">If I run test.ts with</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run test.ts --allow-net"><pre class="notranslate">deno run test.ts --allow-net</pre></div>
<p dir="auto">I get the following error</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: Uncaught PermissionDenied: network access to &quot;http://127.0.0.1:3333/&quot;, run again with the --allow-net flag
    at unwrapResponse (rt/10_dispatch_json.js:24:13)
    at sendAsync (rt/10_dispatch_json.js:75:12)
    at async fetch (rt/26_fetch.js:279:29)"><pre class="notranslate">error: Uncaught PermissionDenied: network access to <span class="pl-s"><span class="pl-pds">"</span>http://127.0.0.1:3333/<span class="pl-pds">"</span></span>, run again with the --allow-net flag
    at unwrapResponse (rt/10_dispatch_json.js:24:13)
    at sendAsync (rt/10_dispatch_json.js:75:12)
    at async fetch (rt/26_fetch.js:279:29)</pre></div>
<p dir="auto">However, this works if I run it like this</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --allow-net test.ts"><pre class="notranslate">deno run --allow-net test.ts</pre></div>
<p dir="auto">Everything works fine.</p>
<p dir="auto">I feel like most users expect the same behavior from both examples.</p>
<p dir="auto">Deno version 1.3.3</p>
<p dir="auto">I'm not hugely familiar with CLI standards, but I don't think I've ever run in to the requirement that --flags precede the positional arguments. I spent a long while trying to get <code class="notranslate">--allow-net</code> to work before realising this was necessary.</p>
<p dir="auto"><code class="notranslate">deno run --allow-net something.ts</code> vs <code class="notranslate">deno run something.ts --allow-net</code></p>
<p dir="auto">Is there any reason not to support both forms?</p>
<p dir="auto">Alternately, a warning that the arguments were being ignored as invalid would have helped me understand.</p>