On 2013-12-12 07:03, Chris Angelico wrote: > Also common, but how do you specify a keyword, then? Say you have a > command with subcommands: > > $0 foo x y > Move the foo to (x,y) > $0 bar x y z > Go to bar X, order a Y, and Z it [eg 'compress', 'gzip', 'drink'] > > How do you show that x/y/z are mandatory args, but foo/bar are > keywords to be typed exactly? In some formats italicized text can > make that distinction, but not in pure text.
I prefer {} notation: $0 mv [--optional] {x} {y} $0 bar [--mutually|--exclusive] {x} {y} {z} -tkc -- https://mail.python.org/mailman/listinfo/python-list