bbkane / warg

Declarative and Intuitive Command Line Apps with Go
https://pkg.go.dev/go.bbkane.com/warg
MIT License
16 stars 0 forks source link

Add `Footer` header to detailed command help output #29

Closed bbkane closed 2 years ago

bbkane commented 2 years ago

Right now it goes straight from the end of the Inherited Section Flags section to the footer with no intervening things:

Inherited Section Flags

  --help , -h : Print help
    type : string enum with choices [default detailed outline allcommands]
    default : default
    currentvalue (set by appdefault) : default

  --output : Path to output file. Use DATEME as an alias for 'graph.<timestamp>'.
    type : path
    default : DATEME.html
    required : true
    currentvalue (set by appdefault) : DATEME.html

Examples:

    Examples use https://github.com/bbkane/dotfiles/blob/master/bin_common/bin_common/open_tmp_html.py to easily open HTML files

    # line chart
    printf "1 2 3\\n3 4 5\\n" | tablegraph -f ' ' graph