Upping version

This commit is contained in:
Michael Lazar
2017-09-06 15:02:10 -04:00
parent d2487a3fc3
commit da5e1b062c
6 changed files with 70 additions and 41 deletions

View File

@@ -46,12 +46,16 @@ def main():
# \fB-h\fR, \fB--help\fR
# show this help message and exit
options = ''
lines = help_sections[2].split('\n')[1:]
lines = help_sections[2].split('\n')[1:] # positional arguments
lines.extend(help_sections[3].split('\n')[1:]) # optional arguments
lines = [line.strip() for line in lines]
arguments = []
for line in lines:
if line.startswith('-'):
arguments.append(line)
elif line.startswith('URL'):
# Special case for URL which is a positional argument
arguments.append(line)
else:
arguments[-1] = arguments[-1] + ' ' + line
for argument in arguments: