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{"."};
|
std::string path{"."};
|
||||||
bool change_dir{true};
|
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 ) {
|
while( change_dir ) {
|
||||||
if( !FSLib::isDirectory(path) ) {
|
if( !FSLib::isDirectory(path) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user