Tweak around docstring to make prettier sphinx autodocs.
[python_utils.git] / argparse_utils.py
index 6055f1ac0334f15286ee2d5884863e42b5eb7746..f73a8936d3eb268b96ea387a543608d24d0ceb51 100644 (file)
@@ -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