Jaymon/captain

Class arguments don't set the name as a flag value

Closed this issue · 0 comments

class Foo(Command):
    bar2 = Argument("--bar1")

The dest would get set as bar2 but an alias for --bar2 isn't added so you can't do this on the command line:

# does not work
$ <CALL> foo --bar2=...

# works
$ <CALL> foo --bar1=...

I was just surprised by this, I thought the name of the property would've been added as an alias since it is added as the dest.