Skip to content
Sharp

CLI Design · interview question

Which naming or modeling choice is strongest for argparse and commands?

Multiple choiceHardchapter-6-curatedpremiumcli-designargparse-and-commands
python
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("--file", required=True)
args = parser.parse_args()
Choose one answer
Answer and explanation

Correct answer

B. Use names and structures that describe the business fact directly instead of temporary implementation noise.

Why

Clear naming and modeling shorten debugging, review, and onboarding time.

Test yourself on CLI Design

A free test with instant, explained results. No account needed.

Start free test
All CLI Design questions →