From 201dcabb9796a12ead165f3eed450ec12bf76040 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 4 Oct 2022 07:35:03 -0400 Subject: [PATCH] Fix kicad.exe as well for file args --- kicad/kicad.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kicad/kicad.cpp b/kicad/kicad.cpp index 04f2c77258..fcccbb3ed4 100644 --- a/kicad/kicad.cpp +++ b/kicad/kicad.cpp @@ -143,11 +143,9 @@ bool PGM_KICAD::OnPgmInit() } catch( const std::runtime_error& err ) { - // this provides the nice pretty print - std::cerr << err.what() << std::endl; - std::cerr << argParser; - - std::exit( CLI::EXIT_CODES::ERR_ARGS ); + // Ignore any argParser "errors" + // unforunately there are cases like the only arg being a file (double click open) + // that we need to fall through } bool cliCmdRequested = false;