Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanBindez authored Nov 2, 2024
1 parent e74dd6e commit d250e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytubefix/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def display_streams(youtube: YouTube) -> None:

def _parse_args(parser: argparse.ArgumentParser, args: Optional[List] = None) -> argparse.Namespace:
parser.add_argument("url", help="The YouTube /watch or /playlist url", nargs="?")
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
parser.add_argument("-V", "--version", action="version", version=f"%(prog)s {__version__}")
parser.add_argument("--itag", type=int, help="The itag for the desired stream")
parser.add_argument("-r", "--resolution", type=str, help="The resolution for the desired stream")
parser.add_argument("-l", "--list", action="store_true", help="The list option causes pytubefix cli to return a list of streams available to download")
Expand Down Expand Up @@ -347,4 +347,4 @@ def main():
_perform_args_on_youtube(youtube, args)

if __name__ == "__main__":
main()
main()

0 comments on commit d250e86

Please sign in to comment.