Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdf00c79

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

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
return0
8080

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp