diff --git a/pkg/interp/fq.jq b/pkg/interp/fq.jq index 730c30be..8b75a90d 100644 --- a/pkg/interp/fq.jq +++ b/pkg/interp/fq.jq @@ -365,12 +365,7 @@ def _main: }, }; def _usage($arg0; $version): - ( "fq - jq for binary" - , "Tool, language and decoders for querying and exploring binary data." - , "For more information see https://github.com/wader/fq" - , "" - , "Usage: \($arg0) [OPTIONS] [--] [EXPR] [FILE...]" - ); + "Usage: \($arg0) [OPTIONS] [--] [EXPR] [FILE...]"; ( . as {$version, $args, args: [$arg0]} # make sure we don't unintentionally use . to make things clearer | null @@ -400,7 +395,11 @@ def _main: ] ) as $_ | if $parsed_args.help then - ( _usage($arg0; $version) + ( "fq - jq for binary" + , "Tool, language and decoders for querying and exploring binary data." + , "For more information see https://github.com/wader/fq" + , "" + , _usage($arg0; $version) , args_help_text(_opts($version)) ) | println elif $parsed_args.version then diff --git a/pkg/interp/testdata/args.fqtest b/pkg/interp/testdata/args.fqtest index ae197149..430a957e 100644 --- a/pkg/interp/testdata/args.fqtest +++ b/pkg/interp/testdata/args.fqtest @@ -1,9 +1,5 @@ /test.mp3: $ fq -fq - jq for binary -Tool, language and decoders for querying and exploring binary data. -For more information see https://github.com/wader/fq - Usage: fq [OPTIONS] [--] [EXPR] [FILE...] $ fq -h fq - jq for binary @@ -42,10 +38,6 @@ null> ^D $ fq -i . /test.mp3 mp3> ^D $ fq -n -fq - jq for binary -Tool, language and decoders for querying and exploring binary data. -For more information see https://github.com/wader/fq - Usage: fq [OPTIONS] [--] [EXPR] [FILE...] $ fq -ni null> ^D diff --git a/pkg/interp/testdata/completion.fqtest b/pkg/interp/testdata/completion.fqtest index 2512cf39..6015aab1 100644 --- a/pkg/interp/testdata/completion.fqtest +++ b/pkg/interp/testdata/completion.fqtest @@ -33,4 +33,4 @@ _start _stop _symbol _unknown -mp3> ^D \ No newline at end of file +mp3> ^D