11 lines
494 B
Plaintext
11 lines
494 B
Plaintext
{{selection|Short Circuit|Console Program Basics}} [[Category:Basic language learning]][[Category:Programming environment operations]][[Category:Initialization]]Retrieve the list of command-line arguments given to the program. For programs that only print the arguments when run directly, see [[Scripted main]].
|
|
|
|
See also [[Program name]].
|
|
|
|
For parsing command line arguments intelligently, see [[Parsing command-line arguments]].
|
|
|
|
Example command line:
|
|
|
|
myprogram -c "alpha beta" -h "gamma"
|
|
|