summaryrefslogtreecommitdiff
path: root/bin/offline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/offline.cpp')
-rw-r--r--bin/offline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/offline.cpp b/bin/offline.cpp
index 65396a88fb..8b42ab7b72 100644
--- a/bin/offline.cpp
+++ b/bin/offline.cpp
@@ -33,14 +33,14 @@ int main(int argc, char *argv[]) {
try {
argumentParser.ParseCLI(argc, argv);
- } catch (args::Help) {
+ } catch (const args::Help&) {
std::cout << argumentParser;
exit(0);
- } catch (args::ParseError e) {
+ } catch (const args::ParseError& e) {
std::cerr << e.what() << std::endl;
std::cerr << argumentParser;
exit(1);
- } catch (args::ValidationError e) {
+ } catch (const args::ValidationError& e) {
std::cerr << e.what() << std::endl;
std::cerr << argumentParser;
exit(2);