arg (C1)
noun
Pronunciation: ɑːrɡ
Definition
A value or piece of information that is passed to a function or program when it is called or executed.
Examples
The script requires a single argument: the name of the file to process.
You can pass multiple arguments to the command-line tool to customize its behavior.
The function returned an error because an invalid argument was provided.
How to Use arg
- pass an argument (collocation)
- To provide a value or piece of information to a function or program. — "You can pass an argument to the function to specify the output format."
- command-line argument (collocation)
- An argument provided to a program when it is run from the command line. — "The program accepts several command-line arguments for configuration."
- invalid argument (collocation)
- An argument that does not meet the requirements or is of the wrong type. — "The system rejected the request due to an invalid argument."
Synonyms of arg
Words with a similar meaning to arg:
Browse the full Anaversity dictionary