diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-05-16 16:36:48 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-05-16 16:36:48 +0300 |
commit | e8ceb3b5d429c0b58d60c68cc0d00582eb0fd25a (patch) | |
tree | cf55a84d2978c35fb0c28334114c898c04265346 /src/inverterctl.cc | |
parent | a9a55d0d2da510f6094e321af5e374895d2c0250 (diff) |
add 'simple-json' format
Diffstat (limited to 'src/inverterctl.cc')
-rw-r--r-- | src/inverterctl.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inverterctl.cc b/src/inverterctl.cc index 882c425..f071f2e 100644 --- a/src/inverterctl.cc +++ b/src/inverterctl.cc @@ -45,7 +45,8 @@ static void short_usage(const char* progname) { " --device <DEVICE>: 'usb' (default), 'serial' or 'pseudo'\n" " --timeout <TIMEOUT>: Timeout in ms (default: " << voltronic::Device::TIMEOUT << ")\n" " --verbose: Be verbose\n" - " --format <FORMAT>: 'table' (default), 'simple-table' or 'json'\n" + " --format <FORMAT>: 'table' (default), 'simple-table', 'json' or\n" + " 'simple-json'\n" "\n" "To see list of supported commands, use --help.\n"; exit(1); @@ -206,7 +207,8 @@ static void usage(const char* progname) { "Formats:\n" " table Human-readable table\n" " simple-table Conveniently-parsable table\n" - " json JSON object or array\n"; + " json JSON object or array\n" + " simple-json no units, enumerations represented as numbers\n"; exit(1); } |