Open peterjc opened 6 years ago
Both -help and -version explicitly exit with return code 1, which is not appropriate as any non-zero return code is considered an error under Unix/Linux:
-help
-version
https://github.com/Ramialison-Lab-ARMI/Trawler-2.0/blob/61f9a9287d4b589112860d6b6c7f82221c16cb46/modules/Trawler/Constants.pm#L287
https://github.com/Ramialison-Lab-ARMI/Trawler-2.0/blob/61f9a9287d4b589112860d6b6c7f82221c16cb46/modules/Trawler/Constants.pm#L293
Those lines should be exit(0); instead.
exit(0);
Both
-help
and-version
explicitly exit with return code 1, which is not appropriate as any non-zero return code is considered an error under Unix/Linux:https://github.com/Ramialison-Lab-ARMI/Trawler-2.0/blob/61f9a9287d4b589112860d6b6c7f82221c16cb46/modules/Trawler/Constants.pm#L287
https://github.com/Ramialison-Lab-ARMI/Trawler-2.0/blob/61f9a9287d4b589112860d6b6c7f82221c16cb46/modules/Trawler/Constants.pm#L293
Those lines should be
exit(0);
instead.