diff --git a/help2rst.py b/help2rst.py index 891decf1..c5126ffc 100755 --- a/help2rst.py +++ b/help2rst.py @@ -78,6 +78,7 @@ DESCRIPTION synopsis=synopsis, description=format_text('\n'.join(description))) in_arg = False + in_footer = False for line in infile: line = line.rstrip() @@ -95,6 +96,14 @@ DESCRIPTION print '' in_arg = False + if line == '--': + in_footer = True + continue + + if in_footer: + print line.strip() + continue + if line == 'Options:': print 'OPTIONS' print '-------' diff --git a/src/nghttp.cc b/src/nghttp.cc index de2f936a..fa57a99e 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -2431,6 +2431,8 @@ Options: --version Display version information and exit. -h, --help Display this help and exit. +-- + The argument is an integer and an optional unit (e.g., 10K is 10 * 1024). Units are K, M and G (powers of 1024).)" << std::endl; } diff --git a/src/nghttpd.cc b/src/nghttpd.cc index 2898f05c..d7691598 100644 --- a/src/nghttpd.cc +++ b/src/nghttpd.cc @@ -151,6 +151,8 @@ Options: --version Display version information and exit. -h, --help Display this help and exit. +-- + The argument is an integer and an optional unit (e.g., 10K is 10 * 1024). Units are K, M and G (powers of 1024).)" << std::endl; } diff --git a/src/shrpx.cc b/src/shrpx.cc index bc2aec31..ed7e79a8 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1398,6 +1398,8 @@ Misc: Print version and exit. -h, --help Print this help and exit. +-- + The argument is an integer and an optional unit (e.g., 10K is 10 * 1024). Units are K, M and G (powers of 1024).