mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Show choices in help and usage messages
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user