Skip to main content

Command-Line Arguments

Command-Line Arguments () on a connected repository card opens the Set command-line arguments dialog. The dialog is the same one the Code Playground toolbar opens, so the argument semantics carry over. Arguments follow the Unix convention, with the first argument being the executed binary's name.

Figure 1. Opening Command-Line Arguments on a connected repository card, entering arguments, and saving them with Set Arguments.

Type the arguments into the textarea and click Set Arguments to save them on the repository. The Compute Engine passes the saved arguments to your program for every run of this repository until you change them. Command-Line Arguments highlights while arguments are set, so you can see at a glance which connected repositories carry custom arguments.

Arguments containing spaces cannot be quoted here either. See Command-line arguments for how the Compute Engine splits them.

See also: How to Run Code from a GitHub Repository.