Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-79072

ipa idrange-add --help should be more clear about required options

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.1
    • rhel-10.0
    • ipa
    • None
    • rhel-sst-idm-ipa
    • ssg_idm
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • None

      What were you trying to do that didn't work?

      idrange-add require all the following

      • base-id
      • range-size
      • rid-base
      • secondary-rid-base

      So far, the help looks like

       # ipa  idrange-add --help
      Usage: ipa [global-options] idrange-add NAME [options]
      
      Add new ID range.
      
          To add a new ID range you always have to specify
      
              --base-id
              --range-size
      
          Additionally
      
              --rid-base
              --secondary-rid-base
      
      

      Since all 4 options are required, it will be more clear to remove the Additionally so the help look like this

          To add a new ID range you always have to specify
              --base-id
              --range-size
              --rid-base
              --secondary-rid-base
      
      

      What is the impact of this issue to you?

      I mistakenly intepret the --rid-base and --secondary-rid-base as optional

      Please provide the package NVR for which the bug is seen:

      ipa-client-4.12.2-1.el9_5.4.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. ipa idrange-add --help

      Expected results

      The help look like

          To add a new ID range you always have to specify
              --base-id
              --range-size
              --rid-base
              --secondary-rid-base
      
      

      Actual results

      The help looked like

          To add a new ID range you always have to specify
      
              --base-id
              --range-size
      
          Additionally
      
              --rid-base
              --secondary-rid-base
      

              frenaud@redhat.com Florence Renaud
              rhn-support-dchen Ding Yi Chen
              Florence Renaud Florence Renaud
              Sudhir Menon Sudhir Menon
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: