Skip to content

Commit

Permalink
Massage --help text to use max 80 characters width
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Jul 31, 2023
1 parent c8e28da commit 29cbccf
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,31 +71,34 @@ static void usage(int code, int keep_it_short) {
"Command options:\n"
" -n, --null-input use `null` as the single input value;\n"
" -R, --raw-input read each line as strings, not parsing as JSON;\n"
" -s, --slurp read all inputs into an array and use it as the single input value;\n"
" -s, --slurp read all inputs into an array and use it as the\n"
" single input value;\n"
" -c, --compact-output compact instead of pretty-printed output;\n"
" -r, --raw-output output strings directly without escapes and quotes;\n"
" --raw-output0 implies -r and output NUL after each output;\n"
" -j, --join-output implies -r and output without newline after each output;\n"
" -a, --ascii-output output strings by only ASCII characters using escape sequences;\n"
" -j, --join-output implies -r and output without newline after\n"
" each output;\n"
" -a, --ascii-output output strings by only ASCII characters using\n"
" escape sequences;\n"
" -S, --sort-keys sort keys of each object on output;\n"
" -C, --color-output colorize JSON output;\n"
" -M, --monochrome-output disable colored output;\n"
" --tab use tabs for indentation;\n"
" --indent n use the given number of spaces (no more than 7) for indentation;\n"
" --indent n use n spaces for indentation (no more than 7);\n"
" --unbuffered flush output stream after each output;\n"
" --stream parse the input value in streaming fashion;\n"
" --stream-errors implies --stream and report JSON parse error with an array;\n"
" --seq parse input and output in application/json-seq MIME type scheme;\n"
" --stream-errors implies --stream and report parse error as an array;\n"
" --seq parse input and output as application/json-seq MIME;\n"
" -f, --from-file file load filter from the file;\n"
" -L directory search modules from the directory;\n"
" --arg name value set variable $name to the string value;\n"
" --argjson name value set variable $name to the JSON value;\n"
" --slurpfile name file set variable $name to an array of JSON values read from the file;\n"
" --rawfile name file set variable $name to a string consisting of the contents of the file;\n"
" --args consume remaining arguments as positional string values;\n"
" --jsonargs consume remaining arguments as positional JSON values;\n"
" --arg name value set $name to the string value;\n"
" --argjson name value set $name to the JSON value;\n"
" --slurpfile name file set $name to an array of JSON values read from file;\n"
" --rawfile name file set $name to string contents of file;\n"
" --args treat remaining arguments as positional strings;\n"
" --jsonargs treat remaining arguments as positional JSON values;\n"
" -e, --exit-status set the exit status code based on the output;\n"
" -b, --binary open input and output streams in binary mode on Windows;\n"
" -b, --binary open input/output streams in binary mode on Windows;\n"
" -V, --version show the version;\n"
" -h, --help show the help;\n"
" -- terminates argument processing;\n\n"
Expand Down

0 comments on commit 29cbccf

Please sign in to comment.