summaryrefslogtreecommitdiff
path: root/src/gen_ugc.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-28 22:50:29 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-28 22:50:29 +0200
commitfb776823ec3174354f14866495ce11d38cbe5701 (patch)
tree4cf6465aac3b0746554266ec061eefb08b757d59 /src/gen_ugc.cc
parente40fbecc1175b98bd2dda2a74e7bc46983594cf7 (diff)
gen_ugc: Print out error in case of bad arguments
Diffstat (limited to 'src/gen_ugc.cc')
-rw-r--r--src/gen_ugc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gen_ugc.cc b/src/gen_ugc.cc
index d8153fe..9100946 100644
--- a/src/gen_ugc.cc
+++ b/src/gen_ugc.cc
@@ -277,6 +277,7 @@ int main(int argc, char** argv) {
args->option_argument('p', "prefix", "ARG", "Prefix for exported method");
std::vector<std::string_view> arguments;
if (!args->run(argc, argv, &arguments)) {
+ args->print_error(std::cerr);
std::cerr << "Try `gen_u --help` for usage\n";
return 1;
}