Skip to content

Commit 70c10db

Browse files
committed
otpset: Show usage when run without arguments
Fixes: #25 Signed-off-by: Phil Elwell <[email protected]>
1 parent 5db3e69 commit 70c10db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

otpset/otpset

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ def ParseCommandLine():
2828

2929
parser.add_argument("-f", "--fake", action='store_true', help="Use fake data for testing")
3030

31+
if len(sys.argv) == 1:
32+
parser.print_help(sys.stderr)
33+
sys.exit(1)
34+
3135
return parser.parse_args()
3236

3337
def ReadOTP(args):

0 commit comments

Comments
 (0)