diff --git a/src/cli/main.cpp b/src/cli/main.cpp index f7e142c..e696280 100644 --- a/src/cli/main.cpp +++ b/src/cli/main.cpp @@ -50,21 +50,19 @@ int App::main(const std::vector &args) { return 0; } - else + + if (_argument_error) { - if (_argument_error) - { - return 1; - } - if (!args.empty()) - { - _uri = args[0]; - } - if (_uri.empty() && _format == export_format::undefined) - { - cerr << "Error: You have to specify either an URI or --export.\n"; - return 1; - } + return 1; + } + if (!args.empty()) + { + _uri = args[0]; + } + if (_uri.empty() && _format == export_format::undefined) + { + cerr << "Error: You have to specify either an URI or --export.\n"; + return 1; } Database db;