summaryrefslogtreecommitdiff
path: root/argparse_utils.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-03-25 09:41:31 -0700
committerScott Gasch <[email protected]>2022-03-25 09:41:31 -0700
commit532df2c5b57c7517dfb3dddd8c1358fbadf8baf3 (patch)
tree9ce9a092ca3efb7282b0ac0449da4c9f30f79efc /argparse_utils.py
parentc6fca944b41f292b66efaba27ebf3fd0a37956b8 (diff)
Since this thing is on the innerwebs I suppose it should have a
copyright...
Diffstat (limited to 'argparse_utils.py')
-rw-r--r--argparse_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/argparse_utils.py b/argparse_utils.py
index 045d882..83a3aa4 100644
--- a/argparse_utils.py
+++ b/argparse_utils.py
@@ -1,5 +1,7 @@
#!/usr/bin/python3
+# © Copyright 2021-2022, Scott Gasch
+
"""Helpers for commandline argument parsing."""
import argparse
@@ -32,6 +34,7 @@ class ActionNoYes(argparse.Action):
--no_enable_the_thing
"""
+
def __init__(self, option_strings, dest, default=None, required=False, help=None):
if default is None:
msg = 'You must provide a default with Yes/No action'