ContinuumIO / ctk

Consultant Toolkit
3 stars 7 forks source link

Why don't short args work for invariants? #7

Open tpn opened 10 years ago

tpn commented 10 years ago
class Foo(Command):
    name = None
    class NameArg(StringInvariant):
        _short_opt = 'a'

foo --help will still print -n/--name as the short arg. There is a silly bug somewhere in the cli.py bit. Or maybe invariant.py.