This commit is contained in:
Jakob Ketterl 2021-02-06 19:02:50 +01:00
parent 9c5858e1e5
commit 732985c529

View File

@ -12,7 +12,7 @@ def main():
parser.add_argument("command", help="One of the following commands: adduser, removeuser") parser.add_argument("command", help="One of the following commands: adduser, removeuser")
parser.add_argument("--noninteractive", action="store_true", help="Don't ask for any user input (useful for automation)") parser.add_argument("--noninteractive", action="store_true", help="Don't ask for any user input (useful for automation)")
parser.add_argument("--silent", action="store_true", help="Ignore errors (useful for automation)") parser.add_argument("--silent", action="store_true", help="Ignore errors (useful for automation)")
parser.add_argument("-u", "--user") parser.add_argument("-u", "--user", help="User name to perform action upon")
args = parser.parse_args() args = parser.parse_args()
if args.command == "adduser": if args.command == "adduser":