Skip to content

Commit

Permalink
we now don't print erroneous missing arg warnings with -h
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieb9 committed Feb 11, 2018
1 parent d09a7d8 commit 11e8513
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Revision history for Github-Backup
1.02 UNREL
- fix missing newline backslash in SYNOPSIS
- added new "FUTURE DIRECTION" POD heading
- -h flag is taken as priority in github_backup, and no longer prints
erroneous warnings for missing args

1.01 2018-02-11
- added repos() and issues()
Expand Down
5 changes: 4 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ MODULE METHODS

FUTURE DIRECTION

Slowly, I will add new functionality such as backing up *all* Github
- Slowly, I will add new functionality such as backing up *all* Github
data, as well as provide the ability to restore to Github the various
items.

- Add more tests. Usually I don't release a distribution with such few
tests, but in this case I have. I digress.

AUTHOR

Steve Bertrand, <steveb at cpan.org>
Expand Down
4 changes: 4 additions & 0 deletions bin/github_backup
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ GetOptions(
"h|help" => \$help
);

if ($help){
help();
}

if (! $opts{user} || ! $opts{dir}){
warn "You must supply both a user and a backup directory.\n";
help();
Expand Down

0 comments on commit 11e8513

Please sign in to comment.