Skip to content

Commit

Permalink
cal: display_help() tweak (#583)
Browse files Browse the repository at this point in the history
* Example scenario: I type "perl cal -r", expecting it to work like it does on NetBSD
* I get a message that -r is invalid. Ok
* I get a message that cal is part of perl power tools; I don't care, I just want to see the valid options
* Remove the introductory text from display_help() and prefix the usage string with "usage: "
* The distribution info is still available at the bottom of the manual (perl perldoc cal)
  • Loading branch information
mknos committed Apr 28, 2024
1 parent aede56f commit 90d33db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/cal
Expand Up @@ -258,8 +258,7 @@ sub get_year {

sub display_help {
print <<END_HELP;
cal - part of the Perl Power Tools
cal [-j] [-y] [[month] year]
usage: cal [-jy] [[month] year]
-j : Display calendar using julian days, where each day
number is the day of the year.
Expand Down

0 comments on commit 90d33db

Please sign in to comment.