From 618dd71be446c8ea570a0f60c569289b82ebd909 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Mon, 26 Jun 2023 21:02:13 +0200 Subject: [PATCH] cal: fix long option name for -c --- misc-utils/cal.c | 2 +- tests/ts/cal/column | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.3