aboutsummaryrefslogtreecommitdiffstats
path: root/convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'convert.py')
-rwxr-xr-xconvert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert.py b/convert.py
index eecb7a6..4608c80 100755
--- a/convert.py
+++ b/convert.py
@@ -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]