pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.32k stars 365 forks source link

Argument parser gets confused with values starting with a dash #866

Closed kasium closed 1 year ago

kasium commented 1 year ago

If the following task gets called as followed, I get an error

@task
def exec(context, args):
    print(args)

inv exec --args="-a" -> Flag <Argument: args (a) *> needed value and was not given one!

However, the following are working:

kasium commented 1 year ago

Seems to be resoled with invoke 2.x