Bug 620412 - Pulp user cli are too confusing with all the username/password options
Summary: Pulp user cli are too confusing with all the username/password options
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Mike McCune
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-08-02 13:27 UTC by Preethi Thomas
Modified: 2011-07-15 19:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-17 16:51:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-08-02 13:27:06 UTC
Description of problem:

The cli options for pulp user are too confusing with all the username & password options

User create needs 3 sets of usernames & passwords while the other 2 needs 2.


[root@preethi pulp]# pulp -u admin -p admin user create --help
Usage: pulp -u <username> -p <password> user create [OPTIONS]


Options:
  -h, --help            show this help message and exit
  --newusername=NEWUSERNAME
                        new username to create
  --newpassword=NEWPASSWORD
                        password for authentication
  --name=NAME           name of user for display purposes
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.




[root@preethi pulp]# pulp -u admin -p admin user delete --help
Usage: pulp -u <username> -p <password> user delete [OPTIONS]


Options:
  -h, --help            show this help message and exit
  --deleteusername=DELETEUSERNAME
                        Username of user you wish to delete
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.


[root@preethi pulp]# pulp -u admin -p admin user list --help
Usage: pulp -u <username> -p <password> user list [OPTIONS]


Options:
  -h, --help            show this help message and exit
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.

Comment 1 Mike McCune 2010-10-29 18:48:08 UTC
We revamped how the CLI handles username and password arguments.  can you re-test to see if things are clearer now?

Comment 2 Preethi Thomas 2010-11-04 17:11:17 UTC
yes this looks good now


[root@preethi ~]# pulp-admin user create --help
Usage: pulp-admin <options> user create <options>

Options:
  -h, --help           show this help message and exit
  --username=USERNAME  new username to create (required)
  --password=PASSWORD  password for authentication
  --name=NAME          name of user for display purposes
[root@preethi ~]# pulp-admin user delete --help
Usage: pulp-admin <options> user delete <options>

Options:
  -h, --help           show this help message and exit
  --username=USERNAME  username of user you wish to delete (required)
[root@preethi ~]# pulp-admin user update --help
Usage: pulp-admin <options> user update <options>

Options:
  -h, --help           show this help message and exit
  --username=USERNAME  username of user you wish to edit. Not editable
                       (required)
  --password=PASSWORD  updated password to assign to user
  --name=NAME          updated name of user for display purposes
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin user 
Usage: pulp-admin <options> user <action> <options>
Supported Actions:
	list           list available users     
	create         create a user            
	delete         delete a user            
	update         update a user            

pulp-admin: error: no action given: please see --help
[root@preethi ~]# pulp-admin user list --help
Usage: pulp-admin <options> user list <options>

Options:
  -h, --help  show this help message and exit
[root@preethi ~]#

Comment 3 Preethi Thomas 2011-02-17 16:51:54 UTC
Closing with community release 

pulp-0.0.139-1.fc14.noarch


Note You need to log in before you can comment on or make changes to this bug.