How to check if any sys.argv argument equals a specific string in Python
Question: In Python I would like to check if _any_ argument that has been passed to my
script equals "-h" (so that I can display a help banner and exit).

Should I loop through sys.argv values or is there a more simple way to achieve
this?


Answer: 
    import sys
    
    def help_required():
        return "-h" in sys.argv[1:]
    

