Make CLI usage text more readable.
parent
27b59f601e
commit
15f349049c
|
@ -16,7 +16,7 @@ static void ShowUsage(const std::string &cmd) {
|
||||||
fprintf(stderr, R"(
|
fprintf(stderr, R"(
|
||||||
When run, performs an action specified by <command> on every <filename>.
|
When run, performs an action specified by <command> on every <filename>.
|
||||||
|
|
||||||
Common options:
|
Common options:
|
||||||
-o, --output <pattern>
|
-o, --output <pattern>
|
||||||
For an input file <name>.slvs, replaces the '%%' symbol in <pattern>
|
For an input file <name>.slvs, replaces the '%%' symbol in <pattern>
|
||||||
with <name> and uses it as output file. For example, when using
|
with <name> and uses it as output file. For example, when using
|
||||||
|
@ -31,7 +31,7 @@ static void ShowUsage(const std::string &cmd) {
|
||||||
For export commands, the unit is mm, and the default is 1.0 mm.
|
For export commands, the unit is mm, and the default is 1.0 mm.
|
||||||
For non-export commands, the unit is %%, and the default is 1.0 %%.
|
For non-export commands, the unit is %%, and the default is 1.0 %%.
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
thumbnail --output <pattern> --size <size> --view <direction>
|
thumbnail --output <pattern> --size <size> --view <direction>
|
||||||
[--chord-tol <tolerance>]
|
[--chord-tol <tolerance>]
|
||||||
Outputs a rendered view of the sketch, like the SolveSpace GUI would.
|
Outputs a rendered view of the sketch, like the SolveSpace GUI would.
|
||||||
|
@ -70,7 +70,7 @@ static void ShowUsage(const std::string &cmd) {
|
||||||
};
|
};
|
||||||
|
|
||||||
fprintf(stderr, R"(
|
fprintf(stderr, R"(
|
||||||
File formats:
|
File formats:
|
||||||
thumbnail:%s
|
thumbnail:%s
|
||||||
export-view:%s
|
export-view:%s
|
||||||
export-wireframe:%s
|
export-wireframe:%s
|
||||||
|
|
|
@ -21,7 +21,7 @@ int main(int argc, char **argv) {
|
||||||
fprintf(stderr, "Usage: %s <command> <options>\n", args[0].c_str());
|
fprintf(stderr, "Usage: %s <command> <options>\n", args[0].c_str());
|
||||||
//-----------------------------------------------------------------------------> 80 col */
|
//-----------------------------------------------------------------------------> 80 col */
|
||||||
fprintf(stderr, R"(
|
fprintf(stderr, R"(
|
||||||
Commands:
|
Commands:
|
||||||
expr [expr]
|
expr [expr]
|
||||||
Evaluate an expression.
|
Evaluate an expression.
|
||||||
)");
|
)");
|
||||||
|
|
Loading…
Reference in New Issue