<p dir="auto"><em>This works</em><br>
<code class="notranslate">deno run --allow-write writeToFile.ts</code></p>
<p dir="auto"><em>But this does not, it just ignores the flag</em><br>
<code class="notranslate">deno run writeToFile.ts --allow-write</code></p>
<p dir="auto">It should at least throw a warning or something, not just silently ignore flags passed like in the second example. Please adjust the parser in such a way, that the second example will also work.</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>