Skip to content

Commit

Permalink
README: misc. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Nov 5, 2023
1 parent 43bd01c commit 2a98aea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Let's imagine that you want to create a little command-line tool that accepts th
following command line options/arguments:

* A positional argument, string
* An optional integer value (``-i`` or ``--integer``)
* An optional float value (``-f`` or ``--float``)
* An optional integer value (``-i`` or ``--intval``)
* An optional float value (``-f`` or ``--floatval``)
* A flag (``-q``)

You can run ``duckargs`` and pass all those options/arguments/flags, and ``duckargs`` will
Expand Down Expand Up @@ -212,7 +212,7 @@ If you have an option which accepts an argument, and you write an argument strin
multiple values separated by commas (e.g. ``-m --mode active,idle,sim``), then generated
python code will use the comma-separated values as a ``choices`` list for argparse:

::
.. code:: python
parser.add_argument('-m', '--mode', choices=['active', 'idle', 'sim'], default='active', help='a string')
Expand Down

0 comments on commit 2a98aea

Please sign in to comment.