Simple argparse
import argparse
parser = argparse.ArgumentParser(description="A simple argument parser example.")
parser.add_argument('-n', '--name', required=True, help='Your name')
parser.add_argument('-a', '--age', type=int, help='Your age', required=True)
parser.add_argument('-g', '--greeting', default='Hello', help='default: Hello')
args = parser.parse_args()
name = args.name
age = args.age
greeting = args.greeting
print(f"{greeting}, {name}! You are {age} years old.")