Show choices in help and usage messages

This commit is contained in:
Paul Ouellette
2019-05-29 23:18:58 -04:00
parent dcd5162710
commit a8faa0b092
4 changed files with 72 additions and 4 deletions

View File

@@ -86,6 +86,6 @@ The ``choices`` property can be used to restrict an argument to a set of choices
.. code-block:: none
Usage: script.lua [-h] <direction>
Usage: script.lua [-h] {north,south,east,west}
Error: argument 'direction' must be one of 'north', 'south', 'east', 'west'