~gpanders/ijq

87cd611b386c6a917607727c92746dc0e4ae91e0 — Gregory Anders 17 days ago 2170a7c master
Show usage when no arguments given
1 files changed, 3 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +3 -0
@@ 221,6 221,9 @@ func main() {
	} else if len(args) > 1 || (len(args) > 0 && (stdinHasData() || doc.options.nullInput)) {
		filter = args[0]
		args = args[1:]
	} else if len(args) == 0 {
		flag.Usage()
		os.Exit(1)
	}

	inputChan := make(chan string)