X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=argparse_utils.py;h=f73a8936d3eb268b96ea387a543608d24d0ceb51;hb=02302bbd9363facb59c4df2c1f4013087702cfa6;hp=6055f1ac0334f15286ee2d5884863e42b5eb7746;hpb=56bc30dfecdf11d477c97afe0ebef234a18ee258;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