A command-line argument is a value supplied when a program launches. In robot projects, it lets one application accept a target, command, or other run-specific input without changing its source code. section 4.8 section 10.5
Practical uses include:
- Pass Python code directly to the interpreter with the -c option. section 4.8
- Provide a QR-code name as the first argument so the robot can stop at the requested location. section 10.5
- Combine command-line execution with a robot shell that drives movement commands. section 4.8
Selecting a QR-code destination
Launch the robot application with a target QR-code name as its first command-line argument. The robot then drives forward, scans continuously, and stops when that target is first detected. section 10.5
Evaluating code at launch
Run `python -c 'print(1+1)'` to pass code directly to the Python interpreter; the command prints `2`. section 4.8













