From 90d33dbcaecd7e21c4ef9a6aa1f8b152bbd7f725 Mon Sep 17 00:00:00 2001 From: Michael Mikonos <127171689+mknos@users.noreply.github.com> Date: Mon, 29 Apr 2024 02:57:23 +0800 Subject: [PATCH] cal: display_help() tweak (#583) * 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) --- bin/cal | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/cal b/bin/cal index 8fad7ff4..b725c86a 100755 --- a/bin/cal +++ b/bin/cal @@ -258,8 +258,7 @@ sub get_year { sub display_help { print <