Project

General

Profile

Bug #3523

Output of "organization update --help" grows on each invocation in hammer shell

Added by Dominic Cleal over 6 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem:
--help for environment/domain/organization update/delete commands repearedly appends options to the output.
The issue probably exists for all the commands for which --help fetches for options having unique constrain. Eg. id, name

Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.0.7-2.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.8-2.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. run "hammer shell"
2. organization update --help

Usage:
    hammer organization update [OPTIONS]

Options:
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource
    -h, --help                    print help

3. organization update --help

Usage:
    hammer organization update [OPTIONS]

Options:
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource
    -h, --help                    print help
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource

3. organization update --help

Usage:
    hammer organization update [OPTIONS]

Options:
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource
    -h, --help                    print help
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource

Expected results:
(Always)

Usage:
    hammer organization update [OPTIONS]

Options:
    --id ID                       resource id
    --name NAME                   resource name
    --new-name NEW_NAME           new name for the resource
    -h, --help                    print help

(https://bugzilla.redhat.com/show_bug.cgi?id=1023163)

Associated revisions

Revision 0b84379a (diff)
Added by Tomas Strachota over 6 years ago

fixes #3523 - output of help grows with each invocation

Revision c4e933c5 (diff)
Added by Tomas Strachota over 6 years ago

fixes #3523 - output of help grows with each invocation

Revision 862bfaba
Added by Tomas Strachota over 6 years ago

Merge pull request #67 from tstrachota/3523_help_grows

fixes #3523 - output of help grows with each invocation

Revision ffdd61d1
Added by mbacovsky over 6 years ago

Merge pull request #64 from tstrachota/3523_help_grows

fixes #3523 - output of help grows with each invocation

History

#1 Updated by Tomáš Strachota over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota

#3 Updated by Dominic Cleal over 6 years ago

  • Target version set to 1.9.2

#4 Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli|commit:0b84379a8396811dff0ae65f972f337e9dfc0085.

Also available in: Atom PDF