itsallcode / openfasttrace

Open source requirement tracing suite
GNU General Public License v3.0
100 stars 21 forks source link

Documentation bugs #419

Closed RobertZickler closed 2 months ago

RobertZickler commented 3 months ago

In https://github.com/itsallcode/openfasttrace/blob/main/core/src/main/resources/usage.txt the command is --report-verbosity in https://github.com/itsallcode/openfasttrace/blob/main/doc/user_guide.md#reference it is wrongly stated as --verbosity-level

If --verbosity-level is used the error oft: Unexpected parameter 'verbositylevel' is not allowed is shown. Also not sure if bug or feature: -v and --v both work. It is documented differently in the linked docs. Even --------v all and ------o html (etc.) work. No sure if that breaks any standard?

Also if no argument is given the error message states: oft: No value for argument 'reportverbosity' With a missing dash.

For the latter that is also the case for --wanted-tags: oft: No value for argument 'wantedtags' And probably for more options (outputformat, ...) Seems to happen here: https://github.com/itsallcode/openfasttrace/blob/63c846a8736dbca98a0c8c2c28c8ae9fd4c0887a/core/src/main/java/org/itsallcode/openfasttrace/core/cli/CommandLineInterpreter.java#L131C22-L131C35

For --output-format the usage.txt states "plain", "html", "aspec" where as the user_guide.md does not state aspec

And the XML reporter has a mayor (and hard to find) typo in user_guide.md as well: In https://github.com/itsallcode/openfasttrace/blob/main/doc/user_guide.md#xml-tracing-report the prompt states: java -jar openfasttrace.jar trace -o aspac -f requirements.xml requirements. Where aspac should be aspec with e The error message states (leaving that here for someone stumbling up on this to find it): Exception in thread "main" org.itsallcode.openfasttrace.api.exporter.ExporterException: Found no matching reporter for output format 'aspac'

Also I think the design/layout of tags should be restricted (as with the id names). Or at least I couldn't find any.
The following contains some theoretical (but possible) nastiness (sorry)

If I should open Issues for the findings separately just give me a note and I will fix it.

Environment

kaklakariada commented 2 months ago

@RobertZickler Thank you for taking the time and reporting all these issues! I fixed most of them in #422. The last point about special characters in tags will be addressed in #423.