Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10426 closed Bug Report - General (Fixed)

commandlineparser doesn't show all options on the help page when initiated from incorrect syntax

Reported by: Kenni Lund [kenni a kelu dot dk] Owned by: Raymond Wagner
Priority: minor Milestone: 0.25
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Children of options are not displayed when a help page is initiated from entering an incorrect argument rather than being initiated with --help.

# mythfilldatabase --help
mythfilldatabase version: master [v0.25-beta-78-g1c2ce6a] www.mythtv.org
Misc. Options:
--dd-file                       Bypass grabber, and read SD data from file
  --lineupid                      DataDirect lineup of input xml file
  --offset                        Day offset of input xml file
  --xmlfile                       XML file to import manually
--dd-grab-all                   refresh full data using DataDirect
--file                          Bypass grabbers and define sourceid and file
  --xmlfile                       XML file to import manually
--manual                        Run interactive configuration
--no-mark-repeats               do not mark repeats
--preset                        Use channel preset values instead of numbers
-h OR --help OR --usage         Display this help printout.
--version                       Display version information.
--sourceid                      Operate on single source
--update                        Run non-destructive updates
--xawchannels                   Read channels from xawtvrc file
  --xawtvrcfile                   xawtvrc file to import channels from
# mythfilldatabase --x
Unhandled option given on command line:
    --x
mythfilldatabase version: master [v0.25-beta-78-g1c2ce6a] www.mythtv.org
Misc. Options:
--dd-file                       Bypass grabber, and read SD data from file
--dd-grab-all                   refresh full data using DataDirect
--file                          Bypass grabbers and define sourceid and file
--manual                        Run interactive configuration
--no-mark-repeats               do not mark repeats
--preset                        Use channel preset values instead of numbers
-h OR --help OR --usage         Display this help printout.
--version                       Display version information.
--sourceid                      Operate on single source
--update                        Run non-destructive updates
--xawchannels                   Read channels from xawtvrc file

Seems to be a generic issue, both mythfilldatabase and mythavtest are affected (I didn't check all of the other executables)

Change History (3)

comment:1 Changed 12 years ago by Raymond Wagner

Owner: set to Raymond Wagner
Status: newaccepted

comment:2 Changed 12 years ago by Raymond Wagner

Resolution: Fixed
Status: acceptedclosed

Fixed in commit ebe802f08

comment:3 Changed 12 years ago by Raymond Wagner

Milestone: unknown0.25
Note: See TracTickets for help on using tickets.