@@ -58,7 +58,7 @@ type flagopts struct {
58
58
OutputRaw0 bool `long:"raw-output0" description:"implies -r with NUL character delimiter"`
59
59
OutputJoin bool `short:"j" long:"join-output" description:"implies -r with no newline delimiter"`
60
60
OutputCompact bool `short:"c" long:"compact-output" description:"output without pretty-printing"`
61
- OutputIndent * int `long:"indent" description:"number of spaces for indentation"`
61
+ OutputIndent * int `long:"indent" args:"number" description:"number of spaces for indentation"`
62
62
OutputTab bool `long:"tab" description:"use tabs for indentation"`
63
63
OutputYAML bool `long:"yaml-output" description:"output in YAML format"`
64
64
OutputColor bool `short:"C" long:"color-output" description:"output with colors even if piped"`
@@ -69,11 +69,11 @@ type flagopts struct {
69
69
InputYAML bool `long:"yaml-input" description:"read input as YAML format"`
70
70
InputSlurp bool `short:"s" long:"slurp" description:"read all inputs into an array"`
71
71
FromFile bool `short:"f" long:"from-file" description:"load query from file"`
72
- ModulePaths []string `short:"L" description:"directory to search modules from"`
73
- Arg map [string ]string `long:"arg" description:"set a string value to a variable"`
74
- ArgJSON map [string ]string `long:"argjson" description:"set a JSON value to a variable"`
75
- SlurpFile map [string ]string `long:"slurpfile" description:"set the JSON contents of a file to a variable"`
76
- RawFile map [string ]string `long:"rawfile" description:"set the contents of a file to a variable"`
72
+ ModulePaths []string `short:"L" long:"library-path" args:"dir" description:"directory to search modules from"`
73
+ Arg map [string ]string `long:"arg" args:"name value" description:"set a string value to a variable"`
74
+ ArgJSON map [string ]string `long:"argjson" args:"name value" description:"set a JSON value to a variable"`
75
+ SlurpFile map [string ]string `long:"slurpfile" args:"name file" description:"set the JSON contents of a file to a variable"`
76
+ RawFile map [string ]string `long:"rawfile" args:"name file" description:"set the contents of a file to a variable"`
77
77
Args []any `long:"args" positional:"" description:"consume remaining arguments as positional string values"`
78
78
JSONArgs []any `long:"jsonargs" positional:"" description:"consume remaining arguments as positional JSON values"`
79
79
ExitStatus bool `short:"e" long:"exit-status" description:"exit 1 when the last value is false or null"`
0 commit comments