Explain Use
Input vs command-line args
This project starts with input() because it’s friendly. Then it graduates to args because your fingers
deserve rights.
TL;DR
- Start with
input()so you can ship today. - Later: add args so you can rerun without retyping.
- Keep one “source of truth”: args if present, otherwise prompt.
Use input() when…
- You’re learning and you want the fewest moving parts.
- The program is interactive (“tell me your Riot ID”).
- You don’t want to remember flags yet.
Use args when…
- You re-run the same command a lot.
- You want “update mode” / “limit 50” / “region NA” without prompts.
- You want future-you to copy/paste one command and be done.
What you’re building (not the full code)
You want a single “source of truth” for Riot ID: if it’s passed in, use it; otherwise ask for it. That’s it.
The vibe
riot_id = args.riot_id
if not riot_id:
riot_id = input('Riot ID (Name#TAG): ').strip()