-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Documentation for CLI scripts is accessed in three ways:
- Using
mmif --help. - Using
mmif subcommand --help. - Online at https://clams.ai/mmif-python/1.2.1/cli.html.
The code for the scripts has a method describe_argparser() that generates a short and a long description, the short one is used for 1 and the long one for 2 and 3. Sometimes the code generates regular text for the long description (for mmif describe) and sometimes it generates restructured text (for all others).
The issue I see is that long regular text would be appropriate for 2 and restructured text (or markdown) for 3. At the moment, both 2 and 3 display raw text, whether it is restructured or not. For 3 the help is generated automatically using the long description from describe_argparser(), but it is printed in raw form. For 2 we sometimes get raw restructured text, which is hard to read.
I propose to work towards using three help strings:
- A short description for
mmif --help. - A long description for
mmif subcommand --help. - A long description in restructured text displayed properly at https://clams.ai/mmif-python/1.2.1/cli.html.
Personally I can do without 3. It would then be better to change the long string for mmif describe into regular text, but it would probably be less work.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status