@@ -58,7 +58,7 @@ type flagopts struct {
5858 OutputRaw0 bool `long:"raw-output0" description:"implies -r with NUL character delimiter"`
5959 OutputJoin bool `short:"j" long:"join-output" description:"implies -r with no newline delimiter"`
6060 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"`
6262 OutputTab bool `long:"tab" description:"use tabs for indentation"`
6363 OutputYAML bool `long:"yaml-output" description:"output in YAML format"`
6464 OutputColor bool `short:"C" long:"color-output" description:"output with colors even if piped"`
@@ -69,11 +69,11 @@ type flagopts struct {
6969 InputYAML bool `long:"yaml-input" description:"read input as YAML format"`
7070 InputSlurp bool `short:"s" long:"slurp" description:"read all inputs into an array"`
7171 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"`
7777 Args []any `long:"args" positional:"" description:"consume remaining arguments as positional string values"`
7878 JSONArgs []any `long:"jsonargs" positional:"" description:"consume remaining arguments as positional JSON values"`
7979 ExitStatus bool `short:"e" long:"exit-status" description:"exit 1 when the last value is false or null"`
0 commit comments