From 09f6bf1b46b196d0cca20c2793c8b16a10c521bc Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Wed, 26 May 2021 08:40:02 +0000 Subject: [PATCH] Add usage information to offsets.py script Signed-off-by: JoeLametta --- misc/offsets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/offsets.py b/misc/offsets.py index 73fd2bc..8a48591 100644 --- a/misc/offsets.py +++ b/misc/offsets.py @@ -8,6 +8,10 @@ import sys from bs4 import BeautifulSoup +if len(sys.argv) < 2: + print("Usage: %s driveoffsets_file" % sys.argv[0], file=sys.stderr) + raise SystemExit(1) + with open(sys.argv[1]) as f: doc = f.read()