Fix launching of files
This commit is contained in:
parent
f5f6d44a48
commit
7d16fba8f9
|
@ -341,13 +341,11 @@ bool PGM_SINGLE_TOP::OnPgmInit()
|
||||||
{
|
{
|
||||||
argParser.parse_args( m_argcUtf8, m_argvUtf8 );
|
argParser.parse_args( m_argcUtf8, m_argvUtf8 );
|
||||||
}
|
}
|
||||||
catch( const std::runtime_error& err )
|
catch( const std::runtime_error& )
|
||||||
{
|
{
|
||||||
// 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;
|
||||||
|
|
Loading…
Reference in New Issue