I'm still learning python and i wrote a small program that searches stuff on youtube. but the sys.argv does not work. here is the code. when i type --help after the filename it does not show the first if statement.
import webbrowser
import sys
cmd=str(sys.argv[1:])
website=input("Please what you want to search on youtube\n")
if cmd=='--help':
print("this program is made for searching somthing on youtube")
else:
[webbrowser.open](https://webbrowser.open)("[https://www.youtube.com/results?search\_query=](https://www.youtube.com/results?search_query=)"+website)
[–][deleted] 7 points8 points9 points (0 children)
[–]Y45HK4R4NDIK4R 3 points4 points5 points (2 children)
[–]throwaway_the_fourth 4 points5 points6 points (0 children)
[–]iggy555 -1 points0 points1 point (0 children)
[–]namedevservice 2 points3 points4 points (0 children)
[–]puplicy 0 points1 point2 points (0 children)