Enrique Fernandez commited on
Commit
a448255
·
1 Parent(s): f709dd0

Default to cwd for path arg

Browse files
Files changed (1) hide show
  1. scripts/pytubectl +2 -0
scripts/pytubectl CHANGED
@@ -8,6 +8,7 @@ from pytube.exceptions import YouTubeError
8
  from pprint import pprint
9
 
10
  import sys
 
11
  import argparse
12
 
13
 
@@ -19,6 +20,7 @@ def _main():
19
  parser.add_argument("--resolution", "-r",
20
  help="The requested resolution", dest="res")
21
  parser.add_argument("--path", "-p", action=FullPaths,
 
22
  help="The path to save the video to.", dest="path")
23
  parser.add_argument("--filename", "-f",
24
  dest="filename",
 
8
  from pprint import pprint
9
 
10
  import sys
11
+ import os
12
  import argparse
13
 
14
 
 
20
  parser.add_argument("--resolution", "-r",
21
  help="The requested resolution", dest="res")
22
  parser.add_argument("--path", "-p", action=FullPaths,
23
+ default=os.getcwd(),
24
  help="The path to save the video to.", dest="path")
25
  parser.add_argument("--filename", "-f",
26
  dest="filename",