X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=argparse_utils.py;h=f73a8936d3eb268b96ea387a543608d24d0ceb51;hb=a9bdfd8fc9f84b7b2c09a57cd12ba32259e84d1c;hp=83a3aa47be1cd4f632c8960beeb4aefb0d4fc840;hpb=532df2c5b57c7517dfb3dddd8c1358fbadf8baf3;p=python_utils.git diff --git a/argparse_utils.py b/argparse_utils.py index 83a3aa4..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,11 +28,13 @@ 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 + These arguments can be used to indicate the inclusion or exclusion of + binary exclusive behaviors. """ def __init__(self, option_strings, dest, default=None, required=False, help=None):