diff options
author | jaseg <git@jaseg.de> | 2021-02-01 09:26:55 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-02-01 12:46:50 +0100 |
commit | fc495607dccbbf9820b67079508a6786010475b7 (patch) | |
tree | d53551c20f664582ddfec83d7b3248233f665131 /svg-flatten/src | |
parent | 5f4f667e17823471f8bf81e5b6ef680ae0576378 (diff) | |
download | gerbolyze-fc495607dccbbf9820b67079508a6786010475b7.tar.gz gerbolyze-fc495607dccbbf9820b67079508a6786010475b7.tar.bz2 gerbolyze-fc495607dccbbf9820b67079508a6786010475b7.zip |
Update README
Diffstat (limited to 'svg-flatten/src')
-rw-r--r-- | svg-flatten/src/main.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/svg-flatten/src/main.cpp b/svg-flatten/src/main.cpp index d05672a..3cf9a36 100644 --- a/svg-flatten/src/main.cpp +++ b/svg-flatten/src/main.cpp @@ -188,9 +188,7 @@ int main(int argc, char **argv) { } else if (fmt == "s-exp" || fmt == "sexp" || fmt == "kicad") { if (!args["sexp_mod_name"]) { - cerr << "--sexp-mod-name must be given for sexp export" << endl; - argagg::fmt_ostream fmt(cerr); - fmt << usage.str() << argparser; + cerr << "Error: --sexp-mod-name must be given for sexp export" << endl; return EXIT_FAILURE; } @@ -199,9 +197,7 @@ int main(int argc, char **argv) { is_sexp = true; } else { - cerr << "Unknown output format \"" << fmt << "\"" << endl; - argagg::fmt_ostream fmt(cerr); - fmt << usage.str() << argparser; + cerr << "Error: Unknown output format \"" << fmt << "\"" << endl; return EXIT_FAILURE; } @@ -265,8 +261,6 @@ int main(int argc, char **argv) { cerr << "writing bitmap into svg" << endl; if (!args["size"]) { cerr << "Error: --size must be given when using bitmap input." << endl; - argagg::fmt_ostream fmt(cerr); - fmt << usage.str() << argparser; return EXIT_FAILURE; } @@ -274,8 +268,6 @@ int main(int argc, char **argv) { auto pos = sz.find_first_of("x*,"); if (pos == string::npos) { cerr << "Error: --size must be of form 12.34x56.78" << endl; - argagg::fmt_ostream fmt(cerr); - fmt << usage.str() << argparser; return EXIT_FAILURE; } @@ -287,8 +279,6 @@ int main(int argc, char **argv) { if (width < 1 || height < 1) { cerr << "Error: --size must be of form 12.34x56.78 and values must be positive floating-point numbers in mm" << endl; - argagg::fmt_ostream fmt(cerr); - fmt << usage.str() << argparser; return EXIT_FAILURE; } |