Project

Profile

Help

Issue #493

closed

error info missing on wrong pulp-admin input

Added by igulina@redhat.com about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.4 Beta
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:

If to use a wrong option in the end of the command, it shows help plus message "The following options were specified but do not exist on the command":

pulp-admin -u admin -p admin repo list --repo-id

Command: list
Description: lists repositories on the Pulp server

Available Arguments:

--summary, -s - if specified, a condensed view with just the repository ID and
                name is displayed
--details     - if specified, detailed configuration information is displayed
                for each repository
--fields      - comma-separated list of repository fields; if specified, only
                the given fields will displayed
The following options were specified but do not exist on the command:
--repo-id

However if to use a wrong command/option in the middle of the pulp commands list, it returns help, but it doesn't note at what point (SUB_SECTION/COMMAND) there is an error.

pulp-admin -u admin -p admin rpm --repo-id repo list

Usage: pulp-admin [SUB_SECTION, ..] COMMAND
Description: manage RPM-related content and features

Available Sections:
consumer - register, bind, and interact with rpm consumers
repo - repository lifecycle commands

pulp-admin -u admin -p admin rpm repo repo list

Usage: pulp-admin [SUB_SECTION, ..] COMMAND
Description: repository lifecycle commands

Available Sections:
content - search the contents of a repository
copy - copies one or more content units between repositories
export - run or view the status of a repository export
group - repository group commands
publish - run or view the status of publish tasks
remove - remove copied or uploaded modules from a repository
sync - run, schedule, or view the status of sync tasks
uploads - upload modules into a repository

Available Commands:
create - creates a new repository
delete - deletes a repository
list - lists repositories on the Pulp server
search - searches for repositories on the server
update - changes metadata on an existing repository

pulp-admin -u admin -p admin list repo

Usage: pulp-admin [SUB_SECTION, ..] COMMAND

Available Sections:
auth - manage users, roles and permissions
bindings - search consumer bindings
consumer - display and manage Pulp consumers
event - subscribe to event notifications
iso - manage ISO-related content and features
orphan - find and remove orphaned content units
puppet - manage Puppet-related content and features
repo - list repositories and manage repo groups
rpm - manage RPM-related content and features
server - display info about the server
tasks - list and cancel server-side tasks

Available Commands:
login - login and download a session certificate
logout - deletes the user's session certificate

Version-Release number of selected component (if applicable):

rpm -qa | grep pulp-server

pulp-server-2.4.1-0.2.alpha.fc20.noarch

How reproducible:
always

Expected results:

Message:
[SUB_SECTION/OPTION] isn't valid for the [SECTION] section.

Available Sections:...
Available Commands:...

+ This bug was cloned from Bugzilla Bug #1132539 +


Related issues

Blocks Pulp - Issue #495: TAB completion for the wrong pulp-admin inputCLOSED - WONTFIXigulina@redhat.comActions
Actions #1

Updated by bmbouter about 9 years ago

  • Blocks Issue #495: TAB completion for the wrong pulp-admin input added
Actions #2

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #3

Updated by bmbouter about 5 years ago

  • Severity set to 1. Low

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #4

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF