From 3fafee85590cc0292bb92522dfb0a3834c2585b4 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Tue, 16 Nov 2021 08:43:29 +0100 Subject: [PATCH] interp: Clearer help for -d --- doc/usage.md | 2 +- pkg/interp/interp.jq | 2 +- pkg/interp/testdata/args.fqtest | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/usage.md b/doc/usage.md index 23f3c9d1..24c9dcda 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -108,7 +108,7 @@ Usage: fq [OPTIONS] [--] [EXPR] [FILE...] --argjson NAME JSON Set variable $NAME to JSON --color-output,-C Force color output --compact-output,-c Compact output ---decode,-d NAME Decode format (probe) +--decode,-d NAME Force decode format (probe) --decode-file NAME PATH Set variable $NAME to decode of file --formats Show supported formats --from-file,-f PATH Read EXPR from file diff --git a/pkg/interp/interp.jq b/pkg/interp/interp.jq index 3bb40402..6830723b 100644 --- a/pkg/interp/interp.jq +++ b/pkg/interp/interp.jq @@ -178,7 +178,7 @@ def _main: "decode_format": { short: "-d", long: "--decode", - description: "Decode format (probe)", + description: "Force decode format (probe)", string: "NAME" }, "decode_file": { diff --git a/pkg/interp/testdata/args.fqtest b/pkg/interp/testdata/args.fqtest index fd6e4bff..53ac0014 100644 --- a/pkg/interp/testdata/args.fqtest +++ b/pkg/interp/testdata/args.fqtest @@ -13,7 +13,7 @@ Usage: fq [OPTIONS] [--] [EXPR] [FILE...] --argjson NAME JSON Set variable $NAME to JSON --color-output,-C Force color output --compact-output,-c Compact output ---decode,-d NAME Decode format (probe) +--decode,-d NAME Force decode format (probe) --decode-file NAME PATH Set variable $NAME to decode of file --formats Show supported formats --from-file,-f PATH Read EXPR from file