introduces -f/--file, which outputs or takes from a file(conditional to the current program)

This commit is contained in:
Darksider3 2019-10-13 10:42:15 +02:00
parent 6e86bf11bb
commit 4134e3cc2e
2 changed files with 2 additions and 0 deletions

0
private/Backup.py Normal file
View file

View file

@ -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