File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,12 @@ def main_function(url, options):
74
74
75
75
def main ():
76
76
parser = argparse .ArgumentParser (
77
-
78
77
description = 'yt (video meta) extracts metadata about a video, such as the transcript and the video\' s duration. By Daniel Miessler.' )
79
- parser .add_argument ('url' , nargs = '?' , help = 'YouTube video URL' )
78
+ # Ensure 'url' is defined once
79
+ parser .add_argument ('url' , help = 'YouTube video URL' )
80
80
parser .add_argument ('--duration' , action = 'store_true' ,
81
81
help = 'Output only the duration' )
82
82
parser .add_argument ('--transcript' , action = 'store_true' ,
83
83
help = 'Output only the transcript' )
84
- parser .add_argument ("url" , nargs = "?" , help = "YouTube video URL" )
85
84
args = parser .parse_args ()
86
85
main_function (args .url , args )
You can’t perform that action at this time.
0 commit comments