#48890 Request to add a help option to readnsstate
Closed: wontfix 4 years ago by mreynolds. Opened 7 years ago by nhosoi.

https://bugzilla.redhat.com/show_bug.cgi?id=1303794#c3
(In reply to Viktor Ashirov from comment #3)
Also it would be useful to provide the usage info using -h|--help switches, not only by executing the binary.

$ readnsstate --help
Traceback (most recent call last):
  File "/usr/bin/readnsstate", line 99, in <module>
    main()
  File "/usr/bin/readnsstate", line 86, in main
    for line in open(sys.argv[1]):
IOError: [Errno 2] No such file or directory: '--help'

$ readnsstate -h
Traceback (most recent call last):
  File "/usr/bin/readnsstate", line 99, in <module>
    main()
  File "/usr/bin/readnsstate", line 86, in main
    for line in open(sys.argv[1]):
IOError: [Errno 2] No such file or directory: '-h'

Using it with non-existent file should provide more user-friendly message than python traceback.


Metadata Update from @nhosoi:
- Issue set to the milestone: 1.3.6 backlog

7 years ago

Metadata Update from @firstyear:
- Issue assigned to firstyear

7 years ago

Metadata Update from @firstyear:
- Custom field reviewstatus adjusted to new
- Issue close_status updated to: None
- Issue tagged with: Easyfix

7 years ago

Metadata Update from @mreynolds:
- Custom field reviewstatus reset (from new)
- Issue set to the milestone: 1.3.7 backlog (was: 1.3.6 backlog)

6 years ago

Metadata Update from @mreynolds:
- Custom field reviewstatus adjusted to None
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1949

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

3 years ago

Login to comment on this ticket.

Metadata