Skip to content

Instantly share code, notes, and snippets.

@ArthurDelannoyazerty
Created March 4, 2025 10:12
Show Gist options
  • Select an option

  • Save ArthurDelannoyazerty/9929e4dc94eed095988f2e9dd2f7d1ae to your computer and use it in GitHub Desktop.

Select an option

Save ArthurDelannoyazerty/9929e4dc94eed095988f2e9dd2f7d1ae to your computer and use it in GitHub Desktop.
A basic argparse in python
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('minute_threshold', type=int)
args = parser.parse_args()
minute_threshold:int = args.minute_threshold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment