Fix kicad.exe as well for file args

This commit is contained in:
Marek Roszko 2022-10-04 07:35:03 -04:00
parent 7d16fba8f9
commit 201dcabb97
1 changed files with 3 additions and 5 deletions

View File

@ -143,11 +143,9 @@ bool PGM_KICAD::OnPgmInit()
} }
catch( const std::runtime_error& err ) catch( const std::runtime_error& err )
{ {
// this provides the nice pretty print // Ignore any argParser "errors"
std::cerr << err.what() << std::endl; // unforunately there are cases like the only arg being a file (double click open)
std::cerr << argParser; // that we need to fall through
std::exit( CLI::EXIT_CODES::ERR_ARGS );
} }
bool cliCmdRequested = false; bool cliCmdRequested = false;