From 4134e3cc2e34acf0c2b9f59744b5958acd20ede6 Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Sun, 13 Oct 2019 10:42:15 +0200 Subject: [PATCH] introduces -f/--file, which outputs or takes from a file(conditional to the current program) --- private/Backup.py | 0 private/lib/CFG.py | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 private/Backup.py diff --git a/private/Backup.py b/private/Backup.py new file mode 100644 index 0000000..e69de29 diff --git a/private/lib/CFG.py b/private/lib/CFG.py index d8efe95..7c596e8 100644 --- a/private/lib/CFG.py +++ b/private/lib/CFG.py @@ -15,6 +15,8 @@ argparser.add_argument('-u', '--unapproved', default=False, action="store_true", help='only unapproved users. Default is only approved.', required=False) argparser.add_argument('-a', '--approved', default=False, action="store_true", help="Only approved Users.", required=False) +argparser.add_argument('-f', '--file', default="stdout", + type=str, help='write to file instead of stdout', required=False) args = argparser.parse_args() CONF_FILE = args.config