diff options
author | Andinus <andinus@nand.sh> | 2020-06-06 20:12:24 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-06-06 20:12:24 +0530 |
commit | 4404d4deb592afcfbb4429d88d16aeea3f871cec (patch) | |
tree | cb7e615a858faf4ef00021823b8e9fa25091ef93 /ara.pl | |
parent | f9a44d8e6d09e5abe7e7a9f2ef58b8952efaa2b1 (diff) | |
download | ara-4404d4deb592afcfbb4429d88d16aeea3f871cec.tar.gz |
Add help flag
Diffstat (limited to 'ara.pl')
-rwxr-xr-x | ara.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ara.pl b/ara.pl index 06865ab..99a6823 100755 --- a/ara.pl +++ b/ara.pl @@ -25,9 +25,21 @@ GetOptions( "latest" => \$get_latest, "notes" => \$state_notes, "rows=i" => \$rows_to_print, + "help" => sub { HelpMessage() }, ) or die "Error in command line arguments"; +sub HelpMessage { + print "Options: + --local Use local data + --latest Fetch latest data + --notes Print State Notes + --rows=i Number of rows to print (i is Integer) + --help Print this help message +"; + exit; +} + die "Can't use --local and --latest together\n" if ( $use_local_file and $get_latest ); |