Skip to content

Commit 1a54d18

Browse files
peterhillmancary-ilm
authored andcommitted
clean up exrmetrics help, simplify JSON output (#1973)
* clean up exrmetrics help, simplify JSON output Signed-off-by: Peter Hillman <peterh@wetafx.co.nz> * revert exrmetrics to returncode 0 with --help Signed-off-by: Peter Hillman <peterh@wetafx.co.nz> --------- Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
1 parent 91017d9 commit 1a54d18

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/bin/exrmetrics/main.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ usageMessage (ostream& stream, const char* program_name, bool verbose = false)
5959
" default is \"all\" \n"
6060
"\n"
6161
" -m set to multi-threaded (system selected thread count)\n"
62-
" -t n use n threads for processing files\n"
63-
" default is single / no threads\n"
62+
" -t n Use a pool of n worker threads for processing files.\n"
63+
" Default is single threaded (no thread pool)\n"
6464
"\n"
6565
" -l level set DWA or ZIP compression level\n"
6666
"\n"
6767
" -z,--compression list list of compression methods to test\n"
68-
" ("
68+
" ("
6969
<< compressionNames.c_str ()
7070
<< ",orig,all\n"
7171
" default orig: retains original method)\n"
@@ -299,7 +299,7 @@ jsonStats (
299299
<< run.metrics.totalStats.sizeData.tileCount << ",\n";
300300
}
301301

302-
if (run.metrics.stats.size () > 0)
302+
if (run.metrics.stats.size () > 1)
303303
{
304304
out << " \"parts\":\n";
305305
out << " [\n";
@@ -482,6 +482,8 @@ main (int argc, char** argv)
482482

483483
if (opts.parse (argc, argv)) { return 1; }
484484

485+
if (opts.inFiles.size () == 0) { return 0; }
486+
485487
list<runData> data;
486488
try
487489
{

0 commit comments

Comments
 (0)