#48890 Request to add a help option to readnsstate
Opened 3 years ago by nhosoi. Modified 2 years ago

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

2 years ago

Metadata Update from @firstyear:
- Issue assigned to firstyear

2 years ago

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

2 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)

2 years ago

Login to comment on this ticket.

Metadata