src: Use separator "--" to mark start of the footer without ambiguity
This commit is contained in:
parent
5df770b9c1
commit
cc94632b29
|
@ -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 '-------'
|
||||
|
|
|
@ -2431,6 +2431,8 @@ Options:
|
|||
--version Display version information and exit.
|
||||
-h, --help Display this help and exit.
|
||||
|
||||
--
|
||||
|
||||
The <SIZE> 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;
|
||||
}
|
||||
|
|
|
@ -151,6 +151,8 @@ Options:
|
|||
--version Display version information and exit.
|
||||
-h, --help Display this help and exit.
|
||||
|
||||
--
|
||||
|
||||
The <SIZE> 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;
|
||||
}
|
||||
|
|
|
@ -1398,6 +1398,8 @@ Misc:
|
|||
Print version and exit.
|
||||
-h, --help Print this help and exit.
|
||||
|
||||
--
|
||||
|
||||
The <SIZE> argument is an integer and an optional unit (e.g., 10K is
|
||||
10 * 1024). Units are K, M and G (powers of 1024).
|
||||
|
||||
|
|
Loading…
Reference in New Issue