introduces -f/--file, which outputs or takes from a file(conditional to the current program)
This commit is contained in:
parent
6e86bf11bb
commit
4134e3cc2e
2 changed files with 2 additions and 0 deletions
0
private/Backup.py
Normal file
0
private/Backup.py
Normal 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
|
||||
|
|
Loading…
Reference in a new issue