summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-03-10 21:38:12 -0600
committerkotfu <kotfu@kotfu.net>2019-03-10 21:38:12 -0600
commit0ff0dfe37b7a9e6998a133452d4718a119b82cf7 (patch)
tree238cfd26ca54a6e2beaf45b4f84c837599c5f33f /docs
parent486f08a8dd3477cb0193cd6e739f556c9de30eaf (diff)
downloadcmd2-git-0ff0dfe37b7a9e6998a133452d4718a119b82cf7.tar.gz
Incorporating requested changes from the PR
Diffstat (limited to 'docs')
-rw-r--r--docs/freefeatures.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index b5c9991a..027caa91 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -319,9 +319,13 @@ You can use negative numbers as either the first or second number of the range
4 alias create four !echo four
Notice the double dashes. These are required because the history command uses
-``argparse`` to parse the command line arguments. For reasons I do not
-understand, ``argparse`` thinks ``-3:`` is an option, not an argument, but it
-thinks ``-3`` is an argument.
+``argparse`` to parse the command line arguments. As described in the `argparse
+documentation <https://docs.python.org/3/library/argparse.html>`_ , ``-3:`` is
+an option, not an argument:
+
+ If you have positional arguments that must begin with - and don’t look like
+ negative numbers, you can insert the pseudo-argument '--' which tells
+ parse_args() that everything after that is a positional argument:
There is no zeroth command, so don't ask for it. If you are a python programmer,
you've probably noticed this looks a lot like the slice syntax for lists and