summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSimon Howard2010-12-18 23:55:07 +0000
committerSimon Howard2010-12-18 23:55:07 +0000
commit463bcf013ce355398974953508d232ac88a6b2d6 (patch)
tree8f21093469f64e1d147bf22adc4acf6ad84b0310 /man
parent1ef81eb5f7c336972fe56f15285f389cafdc96f5 (diff)
downloadchocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.gz
chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.bz2
chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.zip
Add a M_CheckParmWithArgs function, that behaves like M_CheckParm but
also checks that extra options were provided on the command line (thanks Sander van Dijk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2223
Diffstat (limited to 'man')
-rwxr-xr-xman/docgen4
1 files changed, 2 insertions, 2 deletions
diff --git a/man/docgen b/man/docgen
index bfde7aef..3016dc5a 100755
--- a/man/docgen
+++ b/man/docgen
@@ -293,10 +293,10 @@ def add_parameter(param, line, config_file):
# Is this documenting a command line parameter?
- match = re.search('M_CheckParm\s*\(\s*"(.*?)"\s*\)', line)
+ match = re.search('M_CheckParm(WithArgs)?\s*\(\s*"(.*?)"', line)
if match:
- param.name = match.group(1)
+ param.name = match.group(2)
categories[param.category].add_param(param)
return