<p dir="auto">Hi,<br>
I am using Symfony 2.8.6, and after creating a new Command, I stumbled upon an unexpected error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An argument with name &quot;command&quot; already exists.
[Symfony\Component\Console\Exception\LogicException]
An argument with name &quot;command&quot; already exists."><pre class="notranslate"><code class="notranslate">An argument with name "command" already exists.
[Symfony\Component\Console\Exception\LogicException]
An argument with name "command" already exists.
</code></pre></div>
<p dir="auto">After trying a lot of different solutions, I found out that the error had to do with the option shortcut I used:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;setName('my:super:command')
-&gt;setAliases(['my:super:commandalias'])
-&gt;setDescription('Performs some irrelevant work.')
-&gt;addOption('survey', 's', InputOption::VALUE_REQUIRED, 'My option with a shortcut.')"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">setName</span>(<span class="pl-s">'my:super:command'</span>)
-&gt;<span class="pl-en">setAliases</span>([<span class="pl-s">'my:super:commandalias'</span>])
-&gt;<span class="pl-en">setDescription</span>(<span class="pl-s">'Performs some irrelevant work.'</span>)
-&gt;<span class="pl-en">addOption</span>(<span class="pl-s">'survey'</span>, <span class="pl-s">'s'</span>, <span class="pl-v">InputOption</span>::<span class="pl-c1">VALUE_REQUIRED</span>, <span class="pl-s">'My option with a shortcut.'</span>)</pre></div>
<p dir="auto">After changing the alias (or setting it to null), the error just stopped popping out.<br>
Is there any obvious reason I am missing here, or is this a bug?<br>
Because to my knowledge "s" is not used anywhere else.</p>
<p dir="auto">Furthermore, the error is awkwardly cryptic and gave me a hard time debugging this.</p>
<p dir="auto">Regards,<br>
Nicolas</p>
<p dir="auto">Symfony toolbar in 2.8.0 is generating an error because the FileCache the doctrine is generating file with the very big name in windows 10</p>