Skip to content

Commit

Permalink
Catch by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtansia committed Apr 23, 2024
1 parent cb0b35d commit 166ead9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin2s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ e.g. for gfx/foo.bin {identifier} will be foo_bin,

try {
parser.ParseCLI(argc, argv);
} catch (args::Help) {
} catch (args::Help &) {
std::cout << parser;
std::cout << extended_description;
return 0;
} catch (args::ParseError e) {
} catch (args::ParseError &e) {
std::cerr << e.what() << std::endl;
std::cerr << parser;
std::cerr << extended_description;
Expand Down

0 comments on commit 166ead9

Please sign in to comment.