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

missing help for formats

Open csabahenk opened this issue 10 years ago • 2 comments

$ 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.

csabahenk avatar Sep 11 '13 08:09 csabahenk

duplicate of #20

richlv avatar Jul 28 '14 11:07 richlv

Theses issues are about same subject :

  • #20
  • #22
  • #53

cClaude avatar Sep 28 '23 07:09 cClaude