san commited on
Commit
c9d7e5d
·
1 Parent(s): c411b95

added exit call when either resolution or extension is missed

Browse files
Files changed (1) hide show
  1. scripts/pytubectl +1 -1
scripts/pytubectl CHANGED
@@ -42,7 +42,7 @@ def _main():
42
  if not all([args.ext, args.res]):
43
  print "\nMake sure you give either of the below specified format/resolution combination.\n"
44
  pprint(res_formts)
45
- return
46
 
47
  if args.ext and args.res:
48
  # There's only ope video that matches both so get it
 
42
  if not all([args.ext, args.res]):
43
  print "\nMake sure you give either of the below specified format/resolution combination.\n"
44
  pprint(res_formts)
45
+ sys.exit(1)
46
 
47
  if args.ext and args.res:
48
  # There's only ope video that matches both so get it