-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Massage --help text to use max 72 characters width #2799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,32 +70,41 @@ static void usage(int code, int keep_it_short) { | |
(void) fprintf(f, | ||
"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" | ||
" -R, --raw-input read each line as string instead of JSON;\n" | ||
" -s, --slurp read all inputs into an array and use it as\n" | ||
" the 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" | ||
" -r, --raw-output output strings 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" | ||
wader marked this conversation as resolved.
Show resolved
Hide resolved
|
||
" -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\n" | ||
" using 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 (max 7 spaces);\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\n" | ||
" an array;\n" | ||
" --seq parse input/output as application/json-seq;\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" | ||
" -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" | ||
" --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\n" | ||
" from the file;\n" | ||
" --rawfile name file set $name to string contents of file;\n" | ||
" --args consume remaining arguments as positional\n" | ||
" string values;\n" | ||
" --jsonargs consume remaining arguments as positional\n" | ||
" JSON values;\n" | ||
" -e, --exit-status set exit status code based on the output;\n" | ||
#ifdef WIN32 | ||
" -b, --binary open input/output streams in binary mode;\n" | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess we can remove "on Windows" if we do it conditionally? |
||
" -V, --version show the version;\n" | ||
" -h, --help show the help;\n" | ||
" -- terminates argument processing;\n\n" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.