From 17a4f1db9ce6e816ae2041c3041fe780ad15dbcb Mon Sep 17 00:00:00 2001 From: Gerry Nelson Date: Tue, 24 Nov 2020 21:30:08 -0500 Subject: [PATCH] make targetname optional --- updatepreferences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatepreferences.py b/updatepreferences.py index cec3be5..5eb4c34 100755 --- a/updatepreferences.py +++ b/updatepreferences.py @@ -47,7 +47,7 @@ from sharedfunctions import callrestapi parser = argparse.ArgumentParser(description="Update user preferences for a user or a group of users") parser.add_argument("-t", "--target", help="Type the target of the update: user or group", required=True, choices=['user', 'group','all']) -parser.add_argument("-tn", "--targetname", help="ID of the user or group to which the update applies.", required=True) +parser.add_argument("-tn", "--targetname", help="ID of the user or group to which the update applies.") parser.add_argument("-pi", "--preferenceid", help="ID of the preference to be updated", required=True) parser.add_argument("-pv", "--preferencevalue", help="Value to be set for the preference", required=True)