diff options
Diffstat (limited to 'convert.py')
-rwxr-xr-x | convert.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,8 +25,7 @@ import sh import sys def usage(progname): - print("{} path/to/file.html".format(progname)) - sys.exit(1) + print("Usage:\n\t{} <path/to/file.html>".format(progname)) # A "[1]" in the html becomes "[[1]][6]" in text. # As we already uses references at the end a [6] would @@ -241,6 +240,7 @@ def get_metadata(html_file_path): def main(): if len(sys.argv) != 2: usage(sys.argv[0]) + sys.exit(os.EX_USAGE) html_file_path = sys.argv[1] |