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

feature-admin-split
Darksider3 5 years ago
parent 6e86bf11bb
commit 4134e3cc2e

@ -15,6 +15,8 @@ argparser.add_argument('-u', '--unapproved', default=False, action="store_true",
help='only unapproved users. Default is only approved.', required=False) help='only unapproved users. Default is only approved.', required=False)
argparser.add_argument('-a', '--approved', default=False, action="store_true", argparser.add_argument('-a', '--approved', default=False, action="store_true",
help="Only approved Users.", required=False) 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() args = argparser.parse_args()
CONF_FILE = args.config CONF_FILE = args.config

Loading…
Cancel
Save