Skip to content

Commit

Permalink
interp: Add line between usage and args help
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Oct 30, 2021
1 parent 4104a18 commit 0d693aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Tool, language and format decoders for exploring binary data.
For more information see https://github.com/wader/fq

Usage: fq [OPTIONS] [--] [EXPR] [FILE...]

--arg NAME VALUE Set variable $NAME to string VALUE
--argjson NAME JSON Set variable $NAME to JSON
--color-output,-C Force color output
Expand Down
1 change: 1 addition & 0 deletions pkg/interp/interp.jq
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def _main:
( _banner
, ""
, _usage($arg0)
, ""
, args_help_text(_opts)
) | println
elif $opts.show_version then
Expand Down
1 change: 1 addition & 0 deletions pkg/interp/testdata/args.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Tool, language and format decoders for exploring binary data.
For more information see https://github.com/wader/fq

Usage: fq [OPTIONS] [--] [EXPR] [FILE...]

--arg NAME VALUE Set variable $NAME to string VALUE
--argjson NAME JSON Set variable $NAME to JSON
--color-output,-C Force color output
Expand Down

0 comments on commit 0d693aa

Please sign in to comment.