| 1 | How do you create a basic command-line argument parser using argparse? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Beginner |
| 2 | What is the difference between a positional argument and an optional argument (flag) in argparse? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Beginner |
| 3 | How do you specify a default value and a type conversion for an argument? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 4 | How do you restrict an argument's accepted values using the 'choices' parameter? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 5 | How do you accept a variable number of arguments for a single flag, like a list of filenames? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 6 | How do you implement boolean flags using action='store_true' and action='store_false'? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 7 | How do you provide a short and a long form for the same flag, like -v and --verbose? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 8 | How do you implement subcommands (like 'git commit' or 'git push') using argparse's add_subparsers()? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Advanced |
| 9 | How do you group related arguments visually in the generated --help output using argument groups? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Advanced |
| 10 | How do you implement mutually exclusive arguments, where the user must choose EXACTLY ONE of a set of flags? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Advanced |