Skip to content

Commit 8180678

Browse files
committed
Update documentation
1 parent d2b97ca commit 8180678

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/cli/merge-json.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
void print_help_message(char const *program_name)
44
{
5-
std::cout << "Usage: " << std::string(program_name) << R"( [json_or_toml]+
5+
std::cout << "Merge multiple JSON/TOML files into one.\nUsage: "
6+
<< std::string(program_name) << R"( [json_or_toml]+
67
'json_or_toml' can be a JSON or TOML dataset specified inline or a reference
78
to a file prepended by an '@'.
89
Inline datasets will be interpreted as JSON if they start with an '{', as TOML
910
otherwise. Datasets from a file will be interpreted as JSON or TOML depending
1011
on the file ending '.json' or '.toml' respectively.
11-
Inline dataset specifications can be replaced by input read from stdin.
12+
13+
In order to support large numbers of files to be merged, the paths to those
14+
files can also be specified line-by-line per stdin, replacing the limitations
15+
of command line arguments.
1216
1317
If the JSON/TOML files are mixed, then the output type (JSON or TOML) will be
1418
determined by the type of the first file.

0 commit comments

Comments
 (0)