According to PEP 257 , the docstring script command line message should be a usage message:
The pre-dock script line (stand-alone program) should be used as a usage message that is printed when the script is called with invalid or missing arguments (or possibly with the -h option, for help "). Such documentation should document the script function and syntax command lines, environment variables, and files Usage messages can be quite complex (multiple screens are full) and must be sufficient for a new user to use this command correctly, as well as olnuyu brief reference to all options and arguments for the sophisticated user.
And the document line should be the first line as the module level, before anything else is available as __doc__.
Now I also use docoptas a parser of use, so I just need to write a doc line and create a command line parser on its own, which is great.
_("""...""")
What is not so cool is that I cannot find a way to mark docstring as i18nable for gettext, so I can convert it to other languages if given docopt. At the moment, the only solution I got is for usage and help messages to remain in English when all applications are translated to other lines.
As PEP 20 shows :
There should be one - and only one desirable - an easy way to do this.
Although this path may not be obvious at first, if you are not Dutch.
, docstring ?
N.B.: , gettext.install() __init__.py, _() , __doc__.