diff options
author | David Robillard <d@drobilla.net> | 2024-11-22 20:31:25 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-22 20:31:25 -0500 |
commit | 0ad7658686ea1867497a276ff2d72148b57a4d1e (patch) | |
tree | a781b762969a7634ca586162e9bcb15ce785299a /src | |
parent | fd1c5da0af0bc130392b8ba29e957ce0cfa0c09e (diff) | |
download | sord-0ad7658686ea1867497a276ff2d72148b57a4d1e.tar.gz sord-0ad7658686ea1867497a276ff2d72148b57a4d1e.tar.bz2 sord-0ad7658686ea1867497a276ff2d72148b57a4d1e.zip |
Use more conventional command-line help formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/sord_validate.c | 15 | ||||
-rw-r--r-- | src/sordi.c | 10 |
2 files changed, 12 insertions, 13 deletions
diff --git a/src/sord_validate.c b/src/sord_validate.c index 094c421..0104451 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -106,17 +106,16 @@ print_usage(const char* name, bool error) { FILE* const os = error ? stderr : stdout; fprintf(os, "Usage: %s [OPTION]... INPUT...\n", name); - fprintf(os, "Validate RDF data\n\n"); - fprintf(os, " -h Display this help and exit.\n"); - fprintf(os, " -l Print errors on a single line.\n"); - fprintf(os, " -v Display version information and exit.\n"); + fprintf(os, "Validate RDF data.\n\n"); + fprintf(os, " -h Display this help and exit\n"); + fprintf(os, " -l Print errors on a single line\n"); + fprintf(os, " -v Display version information and exit\n"); fprintf(os, "\n" "Validate RDF data. This is a simple validator which checks\n" - "that all used properties are actually defined. It does not do\n" - "any fancy file retrieval, the files passed on the command line\n" - "are the only data that is read. In other words, you must pass\n" - "the definition of all vocabularies used on the command line.\n"); + "that all used properties are actually defined. It doesn't do\n" + "any automatic file retrieval, so all vocabularies must be\n" + "passed as command-line arguments.\n"); return error ? 1 : 0; } diff --git a/src/sordi.c b/src/sordi.c index 05d8194..659cbbf 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -45,11 +45,11 @@ print_usage(const char* name, bool error) fprintf(os, "Usage: %s [OPTION]... INPUT [BASE_URI]\n", name); fprintf(os, "Load and re-serialise RDF data.\n"); fprintf(os, "Use - for INPUT to read from standard input.\n\n"); - fprintf(os, " -h Display this help and exit.\n"); - fprintf(os, " -i SYNTAX Input syntax (`turtle' or `ntriples').\n"); - fprintf(os, " -o SYNTAX Output syntax (`turtle' or `ntriples').\n"); - fprintf(os, " -s INPUT Parse INPUT as string (terminates options).\n"); - fprintf(os, " -v Display version information and exit.\n"); + fprintf(os, " -h Display this help and exit\n"); + fprintf(os, " -i SYNTAX Input syntax (`turtle' or `ntriples')\n"); + fprintf(os, " -o SYNTAX Output syntax (`turtle' or `ntriples')\n"); + fprintf(os, " -s INPUT Parse INPUT as string (terminates options)\n"); + fprintf(os, " -v Display version information and exit\n"); return error ? 1 : 0; } |