mask icon indicating copy to clipboard operation
mask copied to clipboard

Command description bug with options

Open jacobdeichert opened this issue 7 months ago • 0 comments

When writing "OPTIONS" right after the description (without an empty line in between), it causes the description to be listed as "OPTIONS".

## bad_desc
> this should be the description
**OPTIONS**
* whatever
    * flags: -w --whatever
    * desc: Whatever

~~~bash
echo "the description is wrong..."
~~~

Run mask help and see the output contains the wrong description for bad_desc:

mask 0.11.4

USAGE:
    mask [FLAGS] [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help          Prints help information
        --introspect    Print out the maskfile command structure in json
    -V, --version       Prints version information

OPTIONS:
        --maskfile <maskfile>    Path to a different maskfile you want to use

SUBCOMMANDS:
    bad_desc    OPTIONS

jacobdeichert avatar Jul 08 '24 04:07 jacobdeichert