From 15f349049cae6d14787fefebb9fc67332db97bad Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 9 Mar 2017 17:23:47 +0000 Subject: [PATCH] Make CLI usage text more readable. --- src/platform/climain.cpp | 6 +++--- test/debugtool.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/climain.cpp b/src/platform/climain.cpp index e7023621..318494a3 100644 --- a/src/platform/climain.cpp +++ b/src/platform/climain.cpp @@ -16,7 +16,7 @@ static void ShowUsage(const std::string &cmd) { fprintf(stderr, R"( When run, performs an action specified by on every . - Common options: +Common options: -o, --output For an input file .slvs, replaces the '%%' symbol in with 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 non-export commands, the unit is %%, and the default is 1.0 %%. - Commands: +Commands: thumbnail --output --size --view [--chord-tol ] 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"( - File formats: +File formats: thumbnail:%s export-view:%s export-wireframe:%s diff --git a/test/debugtool.cpp b/test/debugtool.cpp index 9cbfb24f..546a79cb 100644 --- a/test/debugtool.cpp +++ b/test/debugtool.cpp @@ -21,7 +21,7 @@ int main(int argc, char **argv) { fprintf(stderr, "Usage: %s \n", args[0].c_str()); //-----------------------------------------------------------------------------> 80 col */ fprintf(stderr, R"( - Commands: +Commands: expr [expr] Evaluate an expression. )");