Use return value from parseCommandLine
This commit is contained in:
parent
1bbddc5de9
commit
715153f13f
@ -114,7 +114,8 @@ int main(int argc, char** argv) {
|
||||
std::string path{"."};
|
||||
bool change_dir{true};
|
||||
|
||||
parseCommandLine(show, seasons_num, path, change_dir, argc, argv);
|
||||
if( !parseCommandLine(show, seasons_num, path, change_dir, argc, argv) )
|
||||
return 1;
|
||||
|
||||
while( change_dir ) {
|
||||
if( !FSLib::isDirectory(path) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user