summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorAbhiseck Paira <abhiseckpaira@disroot.org>2022-07-01 20:49:26 +0530
committerDavid Thompson <dthompson@vistahigherlearning.com>2022-07-07 09:45:34 -0400
commit663029ce4dd98774ed0cd5888741a9658758bbc6 (patch)
treede33bba0fb5dd8ed4eead13a69671fa408b97a0a /COPYING
parentbc5455537fc07b325fd16a0e09bc220ca9e5f759 (diff)
ui: Recognize --help and --version when other arguments follow.
From 881446873325df909f0b9779a8b347dee276f2c9 Mon Sep 17 00:00:00 2001 From: Abhiseck Paira <abhiseckpaira@disroot.org> Date: Fri, 1 Jul 2022 20:00:57 +0530 Subject: [PATCH] fix(ui): recognize -h when it's 1st arg in a multi arg command line When shroud is called with multiple arguments with -h (or --version) as the first argument, it fails to recognize -h (or --version) and prints "unrecognized option '-h'" in the shell. For example following command would not print help information: $ shroud -h list instead shroud complains that -h is an unrecognized option. Change the pattern in `match' macro call in the function `shroud-main' so that when -h (or --version) is first argument, it is recognized and appropriate action is invoked. Rest of the arguments are discarded. * shroud/ui.scm (shroud-main): Modify pattern in `match' macro call to match "-h", "--help" (or "--version") when it's the first argument in a multiple argument command line. Discard the rest of the arguments.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions