Skip to content
Snippets Groups Projects
Unverified Commit 021882b2 authored by Roman Lacko's avatar Roman Lacko
Browse files

install: print usage on invalid options

parent 2a23f2c2
No related branches found
No related tags found
1 merge request!1Code quality improvements
...@@ -97,7 +97,8 @@ my $models = { ...@@ -97,7 +97,8 @@ my $models = {
my $options = {}; my $options = {};
GetOptions($options, qw(update cron help|h|?)); GetOptions($options, qw(update cron help|h|?))
or usage();
if ($options->{usage} || (@ARGV != 1 && !$options->{cron})) { if ($options->{usage} || (@ARGV != 1 && !$options->{cron})) {
usage(); usage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment