Uploaded image for project: 'Red Hat Directory Server'
  1. Red Hat Directory Server
  2. DIRSRV-21

Verbose option for dsctl is not shown in help of actions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • dirsrv-12.5
    • dirsrv-12.2
    • 389-ds-base
    • None
    • None
    • sst_idm_ds
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Bug Fix

      Description of problem:
      Can we show the verbose option and others for dsctl also in the "usage:" part in the help of actions?

      If I run:

      1. dsctl -h
        usage: dsctl [-h] [-v] [-j] [-l] [instance] {restart,start,stop,status,remove,db2index,db2bak,db2ldif,dbverify,bak2db,ldif2db,backups,ldifs,tls,healthcheck,get-nsstate,ldifgen,dsrc,cockpit} ...

        # dsctl instance_name -h
        usage: dsctl [-h] [-v] [-j] [-l] [instance] {restart,start,stop,status,remove,db2index,db2bak,db2ldif,dbverify,bak2db,ldif2db,backups,ldifs,tls,healthcheck,get-nsstate,ldifgen,dsrc,cockpit}

        ...
        dsctl: error: argument

        {restart,start,stop,status,remove,db2index,db2bak,db2ldif,dbverify,bak2db,ldif2db,backups,ldifs,tls,healthcheck,get-nsstate,ldifgen,dsrc,cockpit}

        : invalid choice: 'instance_name' (choose from 'restart', 'start', 'stop', 'status', 'remove', 'db2index', 'db2bak', 'db2ldif', 'dbverify', 'bak2db', 'ldif2db', 'backups', 'ldifs', 'tls', 'healthcheck', 'get-nsstate', 'ldifgen', 'dsrc', 'cockpit')

      Like this it shows the other options in "usage:" part.
      Then if I run for example:

      1. dsctl test db2bak -h
        usage: dsctl [instance] db2bak [-h] [archive]

      positional arguments:
      archive The destination for the archive. This will be created during the db2bak process.

      optional arguments:
      -h, --help show this help message and exit

      It does not show the other options in "usage:" part like in previous commands and it might be confusing.

      Version-Release number of selected component (if applicable):
      389-ds-base-2.0.10-1.module+el9dsrv+12668+daa4c88c.x86_64

      389-ds-base-2.0.8-5.el9.x86_64

      How reproducible:
      Always

      Steps to Reproduce:
      1. dsctl test db2bak -h

      Actual results:

      Expected results:

      Additional info:

              spichugi@redhat.com Simon Pichugin
              bsmejkal@redhat.com Barbora Simonova
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: