diff --git a/README.md b/README.md index 58ab19f7..1a2c4886 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,8 @@ UPDATE: OUTPUT: -o, -output string file to write output - -json write output in JSONL(ines) format - -or, -omit-raw omit raw dns response from jsonl output + -j, -json write output in JSONL(ines) format + -omit-raw, -or omit raw dns response from jsonl output DEBUG: -hc, -health-check run diagnostic check up diff --git a/internal/runner/options.go b/internal/runner/options.go index 59eac4b8..a3959d08 100644 --- a/internal/runner/options.go +++ b/internal/runner/options.go @@ -127,7 +127,7 @@ func ParseOptions() *Options { flagSet.CreateGroup("output", "Output", flagSet.StringVarP(&options.OutputFile, "output", "o", "", "file to write output"), - flagSet.BoolVar(&options.JSON, "json", false, "write output in JSONL(ines) format"), + flagSet.BoolVarP(&options.JSON, "json", "j", false, "write output in JSONL(ines) format"), flagSet.BoolVarP(&options.OmitRaw, "or", "omit-raw", false, "omit raw dns response from jsonl output"), )