On Thu, Dec 12, 2013 at 6:41 AM, Mark Lawrence <breamore...@yahoo.co.uk> wrote:
>> Square brackets in a usage description often mean "optional". You may
>> want to be careful of that. There's no really good solution though.
>
> There is, https://pypi.python.org/pypi/docopt/0.6.1 :)

That appears to use <x> for a mandatory argument x, which is then
slightly ambiguous with shell redirection. But that's the best
notation I've ever seen for distinguishing mandatory args from fixed
keywords.

CrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to