Top "Arguments" questions

An argument is a value passed to a function, procedure, or command line program.

How can I pass arguments to a batch file?

I need to pass an ID and a password to a batch file at the time of running rather than …

batch-file arguments
How do I parse command line arguments in Bash?

Say, I have a script that gets called with this line: ./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile or …

bash command-line scripting arguments getopts
Set a default parameter value for a JavaScript function

I would like a JavaScript function to have optional arguments which I set a default on, which get used if …

javascript function parameters arguments default-parameters
How do I pass command line arguments to a Node.js program?

I have a web server written in Node.js and I would like to launch with a specific folder. I'm …

javascript node.js arguments command-line-arguments
Passing parameters to a Bash function

I am trying to search how to pass parameters in a Bash function, but what comes up is always how …

bash parameters arguments
Print multiple arguments in Python

This is just a snippet of my code: print("Total score for %s is %s ", name, score) But I want …

python printing python-3.x arguments
Reference — What does this symbol mean in PHP?

What is this? This is a collection of questions that come up every now and then about syntax in PHP. …

php arguments logic operators symbols
TypeError: method() takes 1 positional argument but 2 were given

If I have a class... class MyClass: def method(arg): print(arg) ...which I use to create an object... my_…

python python-3.x methods arguments self
How do I create a Python function with optional arguments?

I have a Python function which takes several arguments. Some of these arguments could be omitted in some scenarios. def …

python function arguments optional-arguments
Using parameters in batch files at Windows command line

In Windows, how do you access arguments passed when a batch file is run? For example, let's say I have …

windows batch-file cmd parameters arguments