ddopson / underscore-cli

Command-line utility-belt for hacking JSON and Javascript.
Other
1.72k stars 83 forks source link

missing help for formats #22

Open csabahenk opened 11 years ago

csabahenk commented 11 years ago
$ echo '{}' | underscore print --outfmt '?'
Unrecognized output format: '?'.  See 'help formats', or select from ['json', 'dense', 'stringify', 'pretty', 'inspect', 'text', 'msgpack', 'msgpack.print']

Hmm, OK, so let's see what help formats gives.

$ underscore help formats > /tmp/uhelpfmtout 2>&1

then also:

$ underscore > /tmp/uplainout 2>&1

See:

--- /tmp/uplainout  2013-09-11 10:31:52.818761336 +0200
+++ /tmp/uhelpfmtout    2013-09-11 10:31:41.951850415 +0200
@@ -1,3 +1,4 @@
+Unknown command: formats

   Usage: 
     underscore <command> [--in <filename>|--data <JSON>|--nodata] [--infmt <format>] [--out <filename>] [--outfmt <format>] [--quiet] [--strict] [--color] [--text] [--trace] [--coffee] [--js]

So: help does not seem to know about formats, just bails out to general usage information.

richlv commented 10 years ago

duplicate of #20

cClaude commented 1 year ago

Theses issues are about same subject :