stormpath-cli icon indicating copy to clipboard operation
stormpath-cli copied to clipboard

--output-json should override tab-delimited default during pipe or redirect

Open ghost opened this issue 10 years ago • 1 comments

The default behavior is to emit TSA output when redirecting to a file or piping to STDOUT. This makes it impossible to send JSON to another program for processing.

Suggest that the --output-json flag should prevail regardless of where output is being sent. There is no reason I can see for the default behavior that has been implemented.

ghost avatar Sep 09 '15 01:09 ghost

This is definitely a bug.

Our default behavior is supposed to work like the MySQL command line client: human-readable output by default, tab-delimited when piping or redirecting by default, and --json should override the default in all cases. Thanks for the issue!

lhazlewood avatar Sep 09 '15 19:09 lhazlewood