-
Bug
-
Resolution: Unresolved
-
Critical
-
dirsrv-12.2
-
None
-
None
-
sst_idm_ds
-
0
-
False
-
-
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:
- 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}...
{restart,start,stop,status,remove,db2index,db2bak,db2ldif,dbverify,bak2db,ldif2db,backups,ldifs,tls,healthcheck,get-nsstate,ldifgen,dsrc,cockpit}
dsctl: error: argument: 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:
- 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:
- external trackers
- links to
-
RHBA-2024:136844 redhat-ds:12 bug fix update