When writing command-line programs in Xcode, you can enter text in the bottom console area, but you cannot input options or arguments there, as shown below:
You could test the program in a separate terminal, but this is cumbersome. Instead, you can set options and arguments directly by modifying the Xcode Scheme—this eliminates the need to retype commands (or switch windows and use arrow keys) every time you run the program.
Command+< ( < is typed by pressing Shift+,—sometimes written as Command+Shift+,):
The entries here represent multiple options/arguments for a single command (not two separate commands). This setup lets you easily enable/disable options by checking/unchecking them.
For example, the two entries in the screenshot above correspond to the command:
ascii-print --input1 123 --input2 abc
I hope this helps anyone who might need it~
Customizing the build schemes for a project - Apple Developer Documentation: Official Apple guide on editing Xcode Schemes.