Click: "Got unexpected extra arguments" when passing string
<pre><code>import click

@cli.command()
@click.argument("namespace", nargs=1)
def process(namespace):
.....

@cli.command()
def run():
    for namespace in KEYS.iterkeys():
        process(namespace)
</code></pre>

<p>Running <code>run('some string')</code> produces:</p>

<p><code>Error: Got unexpected extra arguments (o m e  s t r i n g)</code></p>

<p>As if Click passes string argument by one character. Printing an argument shows correct result.</p>

<p>PS: KEYS dictionary defined and working as expected.</p>