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

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

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • ipa-4.12.2-19.el10
    • No
    • Moderate
    • 1
    • rhel-idm-ipa
    • ssg_idm
    • 16
    • 18
    • 2
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • 2025-Q2-Bravo-S6
    • Unspecified Release Note Type - Unknown
    • 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
              David Hanina David Hanina
              Anuja More Anuja More
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: