String type mismatch in argument parser #119

Open
moschlar opened this Issue Feb 12, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@moschlar
Contributor

moschlar commented Feb 12, 2013

$ acrylamid blarb
usage: acrylamid [-h] [-v] [-q] [-C] [--conf /path/to/conf] [--version]  ...
acrylamid: error: argument parser: invalid choice: 'blarb' (choose from 'compile', 'view', 
'autocompile', 'co', 'gen', 'generate', 'serve', 'srv', 'aco', 'check', 'deploy', 'dp', 'info', 'ping', 
'import', u'init', 'new')

See u'init'?

This is because tasks/init.py does from __future__ import unicode_literals, which all other tasks do not.

;)

@posativ

This comment has been minimized.

Show comment Hide comment
@posativ

posativ Feb 12, 2013

Owner

Even without the string type mismatch, it won't find your certainly wrong subcommand ;-)

I keep this issue open as a reminder, that I have to override argparse's default "subcommand not found" as it includes all abbreviations in a long unsorted list.

Owner

posativ commented Feb 12, 2013

Even without the string type mismatch, it won't find your certainly wrong subcommand ;-)

I keep this issue open as a reminder, that I have to override argparse's default "subcommand not found" as it includes all abbreviations in a long unsorted list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment