Skip to content

Commit df00c79

Browse files
committed
Error out if not enough parameters are given
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 8f86cc2 commit df00c79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpdb/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ def main():
7878
'See AUTHORS for detail.')
7979
return 0
8080

81+
if len(args) < 2:
82+
print('usage: bpdb scriptfile [arg] ...')
83+
return 2
84+
8185
# The following code is based on Python's pdb.py.
8286
mainpyfile = args[1]
8387
if not os.path.exists(mainpyfile):

0 commit comments

Comments
 (0)