summaryrefslogtreecommitdiffstats
path: root/moonclient/moonclient/subjects.py
diff options
context:
space:
mode:
Diffstat (limited to 'moonclient/moonclient/subjects.py')
-rw-r--r--moonclient/moonclient/subjects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/moonclient/moonclient/subjects.py b/moonclient/moonclient/subjects.py
index 8203cd92..678caf5b 100644
--- a/moonclient/moonclient/subjects.py
+++ b/moonclient/moonclient/subjects.py
@@ -58,7 +58,7 @@ class SubjectsAdd(Command):
help='Subject description',
)
parser.add_argument(
- '--password',
+ '--subject_pass',
metavar='<password-str>',
help='Password for subject (if not given, user will be prompted for one)',
)
@@ -72,13 +72,13 @@ class SubjectsAdd(Command):
def take_action(self, parsed_args):
if not parsed_args.intraextension:
parsed_args.intraextension = self.app.intraextension
- if not parsed_args.password:
+ if not parsed_args.subject_pass:
parsed_args.password = getpass.getpass("Password for user {}:".format(parsed_args.subject_name))
data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/subjects".format(parsed_args.intraextension),
post_data={
"subject_name": parsed_args.subject_name,
"subject_description": parsed_args.description,
- "subject_password": parsed_args.password,
+ "subject_password": parsed_args.subject_pass,
"subject_email": parsed_args.email
},
authtoken=True)