@@ -696,48 +696,49 @@ int main(int argc, char *argv[]) {
696696
697697 opt.prolog (" \n " PRGNAME " \n Version " VERSION \
698698 " , developed by " CREATOR " (" EMAIL " )\n " );
699- opt[CHR (OPT_ALL)].desc (" process all inputs (by default only the first JSON processed)" );
700- opt[CHR (OPT_CMN)].desc (" a common part of a path, prepended to every followed -" STR (OPT_PRT)
699+ opt[CHR (OPT_ALL)].desc (" process all JSONs from source, or disable multithreading if multiple"
700+ " sources given" );
701+ opt[CHR (OPT_CMN)].desc (" a common part of a walk-path, prepended to every followed -" STR (OPT_PRT)
701702 " option" ).name (" common_wp" );
702- opt[CHR (OPT_CMP)].desc (" compare with JSON (given as file/json/ walk): display delta between"
703- " given JSONs" ).name (" f| j|w" );
703+ opt[CHR (OPT_CMP)].desc (" compare with JSON (given as JSON/ walk/template ): display delta between"
704+ " given JSONs" ).name (" j|w|t " );
704705 opt[CHR (OPT_DBG)].desc (" turn on debugs (multiple calls increase verbosity)" );
705- opt[CHR (OPT_EXE)].desc (" make option parameters for -" STR (OPT_INS) " , -" STR (OPT_UPD)
706+ opt[CHR (OPT_EXE)].desc (" make option parameters for -" STR (OPT_INS) " / -" STR (OPT_UPD)
706707 " undergo a shell evaluation; see -" STR (OPT_GDE) " for more info" );
707- opt[CHR (OPT_FRC)].desc (" apply changes into the file ( instead of printing resulting JSON"
708- " to stdout) " );
708+ opt[CHR (OPT_FRC)].desc (" apply changes into the file argument instead of printing resulting JSON"
709+ " to stdout" );
709710 opt[CHR (OPT_GDE)].desc (" mini USER-GUIDE: explain walk path syntax, usage notes, some examples" );
710711 opt[CHR (OPT_IND)].desc (" indent for pretty printing (suffix `" STR (IND_SFX)
711712 " ' enforces semi-compact format)" ).bind (" 3" ).name (" indent" );
712- opt[CHR (OPT_INS)].desc (" insert JSON (given as either file/json/ walk); see with -" STR (OPT_GDE)
713- " for more" ).name (" f| j|w" );
713+ opt[CHR (OPT_INS)].desc (" insert JSON (given as JSON/ walk/template ); see with -" STR (OPT_GDE)
714+ " for more" ).name (" j|w|t " );
714715 opt[CHR (OPT_JAL)].desc (" wrap all processed JSONs into an array (option -"
715716 STR (OPT_ALL) " assumed, buffered read imposed)" );
716- opt[CHR (OPT_JSN)].desc (" wrap walked JSON elements into a JSON array (-" STR (OPT_JSN) STR (OPT_JSN)
717- " wrap into a JSON object)" );
718- opt[CHR (OPT_LBL)].desc (" print labels (if present) for walked JSON ; together with -"
717+ opt[CHR (OPT_JSN)].desc (" wrap all walked elements from one JSON into a JSON array (-"
718+ STR (OPT_JSN) STR (OPT_JSN) " wrap into an object)" );
719+ opt[CHR (OPT_LBL)].desc (" print labels (if present) for walked JSONs ; together with -"
719720 STR (OPT_JSN) " wrap into objects" );
720721 opt[CHR (OPT_MDF)].desc (" modifier: toggle merging for options -" STR (OPT_INS) " , -" STR (OPT_UPD)
721722 " , -" STR (OPT_JSN) STR (OPT_JSN) " ; see with -" STR (OPT_GDE)
722723 " for more info" );
723724 opt[CHR (OPT_PRG)].desc (" purge all walked JSON elements (-" STR (OPT_PRG) STR (OPT_PRG)
724- " : purge all elements except walked)" );
725- opt[CHR (OPT_PRT)].desc (" an individual partial path, prepended by preceding -" STR (OPT_CMN)
725+ " : purge all elements except ones walked)" );
726+ opt[CHR (OPT_PRT)].desc (" an individual part of a walk- path, prepended by preceding -" STR (OPT_CMN)
726727 " option" ).name (" partial_wp" );
727- opt[CHR (OPT_QUT)].desc (" enforce strict quoted solidus parsing "
728- " (-qq : unquote isolated JSON strings)" );
728+ opt[CHR (OPT_QUT)].desc (" enforce strict quoted solidus parsing"
729+ " (- " STR (OPT_QUT) STR (OPT_QUT) " : unquote JSON strings)" );
729730 opt[CHR (OPT_RAW)].desc (" print JSON in a raw (compact, one-line) format"
730- " (-rr stringify resulting JSON)" );
731+ " (-" STR (OPT_RAW) STR (OPT_RAW) " stringify resulting JSON)" );
731732 opt[CHR (OPT_SEQ)].desc (" do not print/process walks interleaved (i.e. print/process all walks "
732733 " sequentially)" );
733- opt[CHR (OPT_SWP)].desc (" swap around JSON elements pointed by a pair of walks" );
734+ opt[CHR (OPT_SWP)].desc (" swap around JSON elements pointed by pairs of walks" );
734735 opt[CHR (OPT_SZE)].desc (" print size (number of nodes in JSON) at the end of output (-"
735- STR (OPT_SZE) STR (OPT_SZE) " prints size only)" );
736- opt[CHR (OPT_TMP)].desc (" a template to interpolate and apply upon -" STR (OPT_INS) " , - "
737- STR (OPT_UPD) " and standalone -"
736+ STR (OPT_SZE) STR (OPT_SZE) " print size only)" );
737+ opt[CHR (OPT_TMP)].desc (" a template to interpolate and apply upon -" STR (OPT_INS) " / "
738+ STR (OPT_UPD) " / " STR (OPT_CMP) " and standalone -"
738739 STR (OPT_WLK) " operations" ).name (" template" );
739- opt[CHR (OPT_UPD)].desc (" update with JSON (given as either file/json/ walk); see with -"
740- STR (OPT_GDE) " for more" ).name (" f| j|w" );
740+ opt[CHR (OPT_UPD)].desc (" update with JSON (given as either JSON/ walk/template ); see with -"
741+ STR (OPT_GDE) " for more" ).name (" j|w|t " );
741742 opt[CHR (OPT_WLK)].desc (" a standalone walk path (multiple may be given); see with -"
742743 STR (OPT_GDE) " for more" ).name (" walkpath" );
743744 opt[0 ].desc (" file(s) to read from, or next set of options chained over '/'" ).name (" args" )
0 commit comments