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:...
Moved to https://pulp.plan.io/issues/493