<h2 dir="auto">Description</h2>
<p dir="auto">I'm not sure if this is expected behavior or not, but flags should be positional. For instance, if I run this,</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --allow-net server.ts"><pre class="notranslate">deno run --allow-net server.ts</pre></div>
<p dir="auto">it will work properly. But moving the flag to the end of the command will result in an error.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run server.ts --allow-net

error: Uncaught PermissionDenied: network access to &quot;127.0.0.1:8000&quot;, run again with the --allow-net flag
    at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
    at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
    at Object.listen ($deno$/ops/net.ts:51:10)
    at listen ($deno$/net.ts:164:18)
    at serve (server.ts:261:20)
    at server.ts:3:11"><pre class="notranslate">deno run server.ts --allow-net

error: Uncaught PermissionDenied: network access to <span class="pl-s"><span class="pl-pds">"</span>127.0.0.1:8000<span class="pl-pds">"</span></span>, run again with the --allow-net flag
    at unwrapResponse (<span class="pl-smi">$deno</span>$/ops/dispatch_json.ts:43:11)
    at Object.sendSync (<span class="pl-smi">$deno</span>$/ops/dispatch_json.ts:72:10)
    at Object.listen (<span class="pl-smi">$deno</span>$/ops/net.ts:51:10)
    at listen (<span class="pl-smi">$deno</span>$/net.ts:164:18)
    at serve (server.ts:261:20)
    at server.ts:3:11</pre></div>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The flags after the filename should also work. As in this case,</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cat server.ts --number-nonblank
# vs
cat --number-nonblank server.ts"><pre class="notranslate">cat server.ts --number-nonblank
<span class="pl-c"><span class="pl-c">#</span> vs</span>
cat --number-nonblank server.ts</pre></div>
<h2 dir="auto">Environment</h2>
<p dir="auto">OS - Microsoft Windows 10 Pro<br>
Shell - Powershell<br>
Deno - 0.42.0<br>
V8 - 8.2.308<br>
Typescript - 3.8.3</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>