Specifying Arguments for Program Execution

You can pass command-line arguments to a program's main method when you load the program for debugging or when you run the program.

To specify program arguments:

  1. Select the file in the Explorer window.

  2. From the main window, choose Build Set Arguments.

  3. In the Set Arguments dialog box, type the arguments as if you were typing them on the command line.

    Do not include the program name. If the argument includes a space, enclose it in quotation marks (for example, "arg 1").

  4. Click OK.
You can also specify arguments on the Execution tab of the file's property inspector.
See also
Running a Project or File
Setting Runtime Options for the Environment

Legal Notices