Skip to content

Instantly share code, notes, and snippets.

@HelloNamiML
Created August 10, 2020 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HelloNamiML/6b21a38964ae22ba66d62068bf97e77a to your computer and use it in GitHub Desktop.
Save HelloNamiML/6b21a38964ae22ba66d62068bf97e77a to your computer and use it in GitHub Desktop.
shared_secret = None
use_sandbox = False
try:
opts, args = getopt.getopt(sys.argv[2:],"s:", ["secret=", "use_sandbox"])
except getopt.GetoptError:
print(help_message)
sys.exit(2)
for opt, arg in opts:
if opt in ("--use_sandbox"):
use_sandbox = True
if opt in ("-s", "--secret"):
shared_secret = arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment