This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2019735 - Verbose option for dsctl is not shown in help of actions
Summary: Verbose option for dsctl is not shown in help of actions
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 12.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: DS12.5
: dirsrv-12.5
Assignee: Simon Pichugin
QA Contact: LDAP QA Team
Zuzana Zoubkova
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-03 09:29 UTC by bsmejkal
Modified: 2024-06-26 13:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-26 13:53:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 6067 0 None closed Improve CLI help section for dsidm and general parent arguments 2024-02-16 22:02:11 UTC
Red Hat Issue Tracker   DIRSRV-21 0 None None Red Hat Issue Tracker 2024-06-26 13:53:43 UTC
Red Hat Issue Tracker IDMDS-3966 0 None None None 2023-12-06 16:45:53 UTC

Description bsmejkal 2021-11-03 09:29:11 UTC
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} ...
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:

# 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:

Comment 4 Viktor Ashirov 2024-06-26 13:53:44 UTC
This BZ has been automatically migrated to Red Hat Issue Tracker https://issues.redhat.com/browse/DIRSRV-21. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


Note You need to log in before you can comment on or make changes to this bug.