Skip to content

Tag: docopt

Option with optional argument

Suppose that I have I would like to distinguish in my code: –files not specified. –files specified, but with no argument to accept the default. –files myfile, i.e. –files specified with custom argument. With the current docstring I can either Not specify –files. Specify –fi…