mavak / trucov

True coverage tool for C / C++
1 stars 1 forks source link

--help prints invalid command descriptions, render_report, dot_report not listed #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./trucov --help

What do you see?
Invalid descriptions for the commands

Commands that are not being listed:
dot_report 
render_report

How to Fix:
Add dot_report and render_report to be listed when you use --help.

Use the description from the SRS
 http://code.google.com/p/trucov/wiki/SRS#Commands

Original issue reported on code.google.com by millerlyte87@gmail.com on 3 Sep 2009 at 8:56

GoogleCodeExporter commented 9 years ago

Original comment by yekyaw.wsu@gmail.com on 5 Sep 2009 at 8:18

GoogleCodeExporter commented 9 years ago
STILL BROKEN:

Options are not being printed now.

Do: ./trucov --help   
See no help output on options.

dot-report and render-report commands should actually be 
 dot_report and render_report.

render_report help info prints "oprional" instead of options

Original comment by millerlyte87@gmail.com on 5 Sep 2009 at 5:44

GoogleCodeExporter commented 9 years ago

Original comment by yekyaw.wsu@gmail.com on 6 Sep 2009 at 5:27

GoogleCodeExporter commented 9 years ago
Sorry, just a couple more things.

For the descriptions of the options, use the descriptions found in the SRS 
at http://code.google.com/p/trucov/wiki/SRS#Options

1)
Should be:
--mangle  Outputs the mangled names of functions.
--demangle  Outputs the demangled names of functions.
--partial-match  Specifies selection will be matched partially.
--full-match  Specifies selection will be matched fully.
--signature-match  Specifies selection for functions shall be matched using the 
full
function signature.
--config-file   Specifies the config file.
--default-command  The command used when no command is specified.
--default-selection  The selection used when no selection is specified.
--revision-script  Specifies the script to be used to get revision information 
for
the source files.
--and  Requires all selection to match.
--or Allows any selection to match.
--show-fake  Outputs coverage information on fake arcs and fake blocks.
--hide-fake  Hides coverage information on fake arcs and fake blocks.

2)
Use the descriptions in the SRS for the following options:
--version
--chdir
--builddir
--srcdir
--cachefile
--debug
--brief
--only-missing

3)
--help does not print help for --render-format
should be:
--render-format  Specifies the output format of graph files for the render 
commands.

Original comment by millerlyte87@gmail.com on 6 Sep 2009 at 5:53

GoogleCodeExporter commented 9 years ago
Look at the SRS:

1) If an option says "Command Line"
 Then --help will print the option.

2) If an options says "Config File"
 Then --help-config will print the option

3) If an options says "Command Line, Config File"
 Then --help will print it AND --help-config will print it.

Example:
 --render-format option should be printed by both the 
    --help and --help-config

Original comment by millerlyte87@gmail.com on 6 Sep 2009 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by yekyaw.wsu@gmail.com on 7 Sep 2009 at 12:18

GoogleCodeExporter commented 9 years ago
Verified by Matt

Original comment by millerlyte87@gmail.com on 7 Sep 2009 at 12:26