X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=argparse_utils.py;fp=argparse_utils.py;h=f73a8936d3eb268b96ea387a543608d24d0ceb51;hb=1e858172519e9339e4720b8bf9b39b6d9801e305;hp=6055f1ac0334f15286ee2d5884863e42b5eb7746;hpb=52ff365609d3f5a81cb79dc4464b19bd5860cfc0;p=python_utils.git diff --git a/argparse_utils.py b/argparse_utils.py index 6055f1a..f73a893 100644 --- a/argparse_utils.py +++ b/argparse_utils.py @@ -19,7 +19,7 @@ logger = logging.getLogger(__name__) class ActionNoYes(argparse.Action): - """An argparse Action that allows for commandline arguments like this: + """An argparse Action that allows for commandline arguments like this:: cfg.add_argument( '--enable_the_thing', @@ -28,7 +28,7 @@ class ActionNoYes(argparse.Action): help='Should we enable the thing?' ) - This creates cmdline arguments: + This creates the following cmdline arguments:: --enable_the_thing --no_enable_the_thing