aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-19 02:21:15 +0000
committerAlex Schofield <git@ajschof.me>2025-02-19 02:21:34 +0000
commit7a24e4e5526163f1c90b3bd5be173c545bd283cb (patch)
tree7de2257ad2bd5c6f7283e3d50aa2063588cc77f5
parent0a4060dc5b8740325c38c1a3fbaf3d0012cae6b4 (diff)
downloadgdpr-obfuscator-7a24e4e5526163f1c90b3bd5be173c545bd283cb.tar.gz
gdpr-obfuscator-7a24e4e5526163f1c90b3bd5be173c545bd283cb.zip
add shorthand options for choices in CLI
-rw-r--r--cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli.py b/cli.py
index db9821b..12fd40a 100644
--- a/cli.py
+++ b/cli.py
@@ -19,13 +19,13 @@ def main():
# The user can only choose one of these options or the program will exit
# If not provided, the program will exit
loc = parser.add_mutually_exclusive_group(required=True)
- loc.add_argument("--local")
- loc.add_argument("--s3")
+ loc.add_argument("-l", "--local")
+ loc.add_argument("-s", "--s3")
# Require user to provide a list of PII fields to obfuscate
# e.g. --pii name email_address
# If not provided, the program will exit
- parser.add_argument("--pii", nargs="+", required=True)
+ parser.add_argument("-p", "--pii", nargs="+", required=True)
# Parse the arguments
args = parser.parse_args()
git.ajschof.me — hosted by ajschofield — powered by cgit