Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-31475

mismatch between hammer full-help and the output of per-command --help

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.17.0, stream
    • Hammer
    • Low
    • None

      Description of problem:

      hammer full help output shows more items then the --help output for individual commands

      How reproducible:

      always

      Is this issue a regression from an earlier version:

      n/a

      Steps to Reproduce:

      example case:

      In full help:

      hammer > flatpak-remote > info
      ------------------------------
      Show a flatpak remote

      Usage:
          hammer flatpak-remote <info|show> [OPTIONS]

      Options:
       --fields LIST                 Show specified fields or predefined field sets only. (See below)
       --id NUMBER                   Flatpak remote numeric identifier
       --name VALUE                  Flatpak remote name to search by
       --organization VALUE          Organization name to search by
       --organization-id VALUE       Organization ID to search by
       --organization-label VALUE    Organization label to search by
       --organization-title VALUE    Organization title
       -h, --help                    Print help

      while:

      ]# hammer flatpak-remote info --help
      Usage:
          hammer flatpak-remote <info|show> [OPTIONS]

      Options:
       --fields LIST                    Show specified fields or predefined field sets only. (See below)
       --id NUMBER                      Flatpak remote numeric identifier
       --name VALUE                     Flatpak remote name to search by
       --organization[-id|-label] VALUE Organization name/label/id to search by
       -h, --help                       Print help

      so organization-title is missing in the second case

      Actual behavior:
      seems like --help is not showing all available options

      Expected behavior:
      [Describe what should be happening instead]

      Business Impact / Additional info:

      Found by robottelo automation, the full list of occurrences (added here means "missing in --help"):

      E           Failed: hammer flatpak-remote info
      E             Added options:
      E               * organization-title
      E           
      E           hammer flatpak-remote list
      E             Added options:
      E               * organization-title
      E           

       

              ofedoren@redhat.com Oleh Fedorenko
              pondrejk@redhat.com Peter Ondrejka
              Peter Ondrejka Peter Ondrejka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: