diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-12 20:42:26 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-12 20:42:26 +0100 |
commit | 2a8f0e7061babf03bc614554e3d5fd32220c305c (patch) | |
tree | 65977e7545c2b849c36d2461e9e054b3adf9131d /adapter | |
parent | 22480a38c618aea42285b20868231f247932f2ab (diff) | |
download | chawan-2a8f0e7061babf03bc614554e3d5fd32220c305c.tar.gz |
mancha: only set man as section without other parameters
e.g. `man 2 -k blah' should not override the section
Diffstat (limited to 'adapter')
-rw-r--r-- | adapter/tools/mancha.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/adapter/tools/mancha.nim b/adapter/tools/mancha.nim index 2c4c7c34..fa187177 100644 --- a/adapter/tools/mancha.nim +++ b/adapter/tools/mancha.nim @@ -56,7 +56,8 @@ proc main() = else: help(1) inc i - if not forceSection and section != "" and man == "": + if not forceSection and section != "" and man == "" and keyword == "" and + local == "": man = section section = "" if not ((local != "") != (man != "") != (keyword != "")): |