Return non-zero exit code when invalid option is specified (#34)
Also add a unit test for this. Fixes #34: https://github.com/aspiers/stow/issues/34
This commit is contained in:
parent
1e9fa23d2e
commit
e79c5938bc
2 changed files with 6 additions and 2 deletions
|
@ -539,7 +539,7 @@ sub process_options {
|
|||
push @pkgs_to_stow, $_[0];
|
||||
}
|
||||
},
|
||||
) or usage();
|
||||
) or usage('');
|
||||
|
||||
usage() if $options{help};
|
||||
version() if $options{version};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue