Skip to content

Commit 823f3b2

Browse files
Jonathan DunnJonathan Dunn
authored andcommitted
fixed yt...again
1 parent b11f6da commit 823f3b2

File tree

1 file changed

+2
-3
lines changed
  • installer/client/cli

1 file changed

+2
-3
lines changed

installer/client/cli/yt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ def main_function(url, options):
7474

7575
def main():
7676
parser = argparse.ArgumentParser(
77-
7877
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')
8080
parser.add_argument('--duration', action='store_true',
8181
help='Output only the duration')
8282
parser.add_argument('--transcript', action='store_true',
8383
help='Output only the transcript')
84-
parser.add_argument("url", nargs="?", help="YouTube video URL")
8584
args = parser.parse_args()
8685
main_function(args.url, args)

0 commit comments

Comments
 (0)