Skip to content

Commit

Permalink
Add basic help section, tag v1.2 in advance
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Jun 22, 2020
1 parent 1a48414 commit cd9de45
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions bin/generate-zbm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use strict;
use warnings;

our $VERSION = '1.1';
our $VERSION = '1.2';

use Getopt::Long qw(:config no_ignore_case auto_version);
use Pod::Usage qw(pod2usage);
Expand Down Expand Up @@ -44,13 +44,23 @@ $runConf{exit_code} = 0;

GetOptions(
"version|v=s" => \$runConf{version},
"pkgname|p=s" => \$runConf{pkgname},
"action|a=s" => \$runConf{action},
"update|u=s" => \$runConf{update},
"kernel|k=s" => \$runConf{kernel},
"bootdir|b=s" => \$runConf{bootdir},
"confd|C=s" => \$runConf{confd},
"config|c=s" => \$configfile,
"help|h" => sub {
my $bin = basename($0);
my $help = << "EOF";
Usage: $bin [options]
-v|--version Manually set the version
-k|--kernel Manually set the kernel version
-b|--bootdir Manually set the location for the generated boot files
-C|--confd Manually set the Dracut configuration directory
-c|--config Manually set the configuration file
EOF
print $help;
exit;
},
);

# Sanity check, ensure we have a configuration file
Expand Down

0 comments on commit cd9de45

Please sign in to comment.