ioccc-src / mkiocccentry

Form an IOCCC entry as a compressed tarball file
Other
28 stars 5 forks source link

Update jfmt, jval and jnamval -F option #828

Closed xexyl closed 9 months ago

xexyl commented 9 months ago

The option now looks like:

-F fmt  Change the JSON format style (def: use default)

    tty     When output is to a TTY, use colour, otherwise use simple
    simple      Each line has one JSON level determined by '[]'s and '{}'s
    colour      Simple plus ANSI colour syntax highlighting
    color       Alias for colour (colour excluding you :-) )
    1line       One line output
    nows        One line output, no extra whitespace

Updated man pages for this option as well as a typo fix in jnamval.1 (an option letter was incorrect making it so that the example had no explanation).

Updated tmp/TODO.md - something that has to be done after the specs of these tools are finalised is to make sure common options are in the same order ahead of the other options both in usage strings and man pages.

The -F option is not yet added to the json_util_README.md file or if it is it's not updated. That will happen another time.

lcn2 commented 9 months ago

thanks @xexyl

xexyl commented 9 months ago

thanks @xexyl

Happy to help.