From: Jakub Wilk Date: Mon, 26 Jun 2023 19:02:13 +0000 (+0200) Subject: cal: fix long option name for -c X-Git-Tag: v2.40-rc1~360^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=618dd71be446c8ea570a0f60c569289b82ebd909;p=thirdparty%2Futil-linux.git cal: fix long option name for -c --- diff --git a/misc-utils/cal.c b/misc-utils/cal.c index 21eecae9a7..21ae6c6bd8 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -320,7 +320,7 @@ int main(int argc, char **argv) {"twelve", no_argument, NULL, 'Y'}, {"help", no_argument, NULL, 'h'}, {"vertical", no_argument, NULL,'v'}, - {"column", required_argument, NULL,'c'}, + {"columns", required_argument, NULL,'c'}, {NULL, 0, NULL, 0} }; diff --git a/tests/ts/cal/column b/tests/ts/cal/column index e3abcf4eb6..ce336caa35 100755 --- a/tests/ts/cal/column +++ b/tests/ts/cal/column @@ -41,9 +41,9 @@ function call_cal { ts_finalize_subtest } -call_cal "6 columns" --year --column 6 $MYTIME -call_cal "5 columns" --year --column 5 $MYTIME -call_cal "auto columns" --year --column auto $MYTIME +call_cal "6 columns" --year --columns 6 $MYTIME +call_cal "5 columns" --year --columns 5 $MYTIME +call_cal "auto columns" --year --columns auto $MYTIME ts_finalize