Fixed exitCode on invalid argument.
This commit is contained in:
parent
12c143ccca
commit
3603d873b2
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ Future<int> main(List<String> arguments) async {
|
|||
} on FormatException catch (e) {
|
||||
await printError(
|
||||
"${e.message}\nTry '$appName --$helpFlag' for more information.");
|
||||
return exitFailure;
|
||||
exitCode = exitFailure;
|
||||
return exitCode;
|
||||
}
|
||||
|
||||
if (argResults[helpFlag]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue