On 11/12/2013 19:46, Chris Angelico wrote:
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


I use the alternative X for a mandatory argument X.

--
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Mark Lawrence

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

Reply via email to