diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-19 02:21:15 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-19 02:21:34 +0000 |
| commit | 7a24e4e5526163f1c90b3bd5be173c545bd283cb (patch) | |
| tree | 7de2257ad2bd5c6f7283e3d50aa2063588cc77f5 | |
| parent | 0a4060dc5b8740325c38c1a3fbaf3d0012cae6b4 (diff) | |
| download | gdpr-obfuscator-7a24e4e5526163f1c90b3bd5be173c545bd283cb.tar.gz gdpr-obfuscator-7a24e4e5526163f1c90b3bd5be173c545bd283cb.zip | |
add shorthand options for choices in CLI
| -rw-r--r-- | cli.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |
