Use return value from parseCommandLine

This commit is contained in:
zvon 2019-01-04 20:22:54 +01:00
parent 1bbddc5de9
commit 715153f13f

View File

@ -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) ) {