mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 02:40:08 +00:00
exit on invalid input file or command line argument #840
This commit is contained in:
parent
1d17aa579a
commit
3609f76474
@ -176,7 +176,8 @@ int Trick::CommandLineArguments::process_sim_args(int nargs , char **args) {
|
||||
input_file = "";
|
||||
if(strcmp(argv[1], "trick_version") && strcmp(argv[1], "sie") && strcmp(argv[1], "-help") && strcmp(argv[1], "--help") &&
|
||||
strcmp(argv[1], "-h") && strcmp(argv[1], "help")) {
|
||||
std::cerr << "\nWARNING: No valid input file detected in command line arguments" << std::endl;
|
||||
std::cerr << "\nERROR: Invalid input file or command line argument." << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user