mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Print help text when called without arguments
This commit is contained in:
parent
455fbf3fd1
commit
3cfbd6b679
@ -120,6 +120,9 @@ def main():
|
||||
parser.add_option("-p", "--password", default=None,
|
||||
help="Password")
|
||||
(options, args) = parser.parse_args()
|
||||
if not args:
|
||||
parser.print_help()
|
||||
sys.exit(0)
|
||||
if len(args) != 1:
|
||||
parser.error("incorrect number of arguments")
|
||||
|
||||
|
BIN
svtplay-dl
BIN
svtplay-dl
Binary file not shown.
Loading…
Reference in New Issue
Block a user