about summary refs log tree commit diff stats
path: root/adapter
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-12 20:42:26 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-12 20:42:26 +0100
commit2a8f0e7061babf03bc614554e3d5fd32220c305c (patch)
tree65977e7545c2b849c36d2461e9e054b3adf9131d /adapter
parent22480a38c618aea42285b20868231f247932f2ab (diff)
downloadchawan-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.nim3
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 != "")):