tagged [arguments]

Passing command line arguments in Visual Studio 2010?

Passing command line arguments in Visual Studio 2010? I am working on a C project and can not figure out how to pass command line arguments to my main function in Visual Studio 2010 Express Edition. I...

What is $@ in Bash?

What is $@ in Bash? I reckon that the handle `$@` in a shell script is an array of all arguments given to the script. Is this true? I ask because I normally use search engines to gather information, b...

28 May at 14:8

Is it possible to get all arguments of a function as single object inside that function?

Is it possible to get all arguments of a function as single object inside that function? In PHP there is [func_num_args](http://php.net/manual/en/function.func-num-args.php) and [func_get_args](http:/...

Does C# support a variable number of arguments, and how?

Does C# support a variable number of arguments, and how? Does C# support a variable number of arguments? If yes, How does C# support variable no of arguments? What are the examples? How are variable a...

How do I use the lines of a file as arguments of a command?

How do I use the lines of a file as arguments of a command? Say, I have a file `foo.txt` specifying `N` arguments which I need to pass to the command `my_command` How do I use the lines of a file as a...

Downloading MySQL dump from command line

Downloading MySQL dump from command line I am moving away from Linode because I don't have the Linux sysadmin skills necessary; before I complete the transition to a more noob-friendly service, I need...

Python Error: "ValueError: need more than 1 value to unpack"

Python Error: "ValueError: need more than 1 value to unpack" In Python, when I run this code: I get this error: What does that error mean?

16 Dec at 23:57

How to add reference to a method parameter in javadoc?

How to add reference to a method parameter in javadoc? Is there a way to add references to one or more of a method's parameters from the method documentation body? Something like:

29 Sep at 12:24

Can there exist two main methods in a Java program?

Can there exist two main methods in a Java program? Can two main methods exist in a Java program? Only by the difference in their arguments like: and second can be If it is possible, which Method will...

Using parameters in batch files at Windows command line

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 a program named `hello.bat`. When I ente...

Pass arguments into C program from command line

Pass arguments into C program from command line So I'm in Linux and I want to have a program accept arguments when you execute it from the command line. For example, `./myprogram 42 -b -s` So then the...

31 Jan at 05:17

Nullable Method Arguments in C#

Nullable Method Arguments in C# [Passing null arguments to C# methods](https://stackoverflow.com/questions/271588/passing-null-arguments-to-c-methods/271600) Can I do this in c# for .Net 2.0? If not, ...

23 May at 10:29

Passing parameters to a Bash function

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 to pass parameter from the . I would like to pass parameters with...

27 May at 10:44

Netbeans how to set command line arguments in Java

Netbeans how to set command line arguments in Java I am trying to set command line arguments in a Netbeans 7.1 Java project on Windows 7 64 bit. Netbeans is not passing the arguments I give it. I go t...

27 May at 02:35

Java: Check if command line arguments are null

Java: Check if command line arguments are null I am looking to do some error checking for my command line arguments However, this returns an array out of bounds exception, which makes sense. I am just...

Propagate all arguments in a Bash shell script

Propagate all arguments in a Bash shell script I am writing a very simple script that calls another script, and I need to propagate the parameters from my current script to the script I am executing. ...

17 Sep at 12:33

Converting an array to a function arguments list

Converting an array to a function arguments list Is it possible to convert an array in JavaScript into a function argument sequence? Example: ``` run({ "render": [ 10, 20, 200, 200 ] }); function run(...

28 Jul at 02:44

Bash command line and input limit

Bash command line and input limit Is there some sort of character limit imposed in bash (or other shells) for how long an input can be? If so, what is that character limit? I.e. Is it possible to writ...

How to convert a command-line argument to int?

How to convert a command-line argument to int? I need to get an argument and convert it to an int. Here is my code so far: ``` #include using namespace std; int main(int argc,int argvx[]) { int i=1;...

Set a default parameter value for a JavaScript function

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 the value isn't defined (and ignored i...

Passing zero arguments as params -- where the behaviour is defined?

Passing zero arguments as params -- where the behaviour is defined? C# spec. allows you to call a function with zero parameters. However, I didn't find in C# Lang. Spec. a word on further behaviour --...

Launch Program with Parameters

Launch Program with Parameters How do I write a very simple program that uses the command line to navigate to a program in the user's Program Files directory, then launches the `.exe` with a parameter...

Python function as a function argument?

Python function as a function argument? Suppose I have some code like: ``` def myfunc(anotherfunc, extraArgs): # somehow call `anotherfunc` here, passing it the `extraArgs` pass ``` I want to pass...

Declaring a python function with an array parameters and passing an array argument to the function call?

Declaring a python function with an array parameters and passing an array argument to the function call? I am a complete newbie to python and attempting to pass an array as an argument to a python fun...

12 Aug at 23:19

How to pass arguments to Shell Script through docker run

How to pass arguments to Shell Script through docker run I am new to the docker world. I have to invoke a shell script that takes command line arguments through a docker container. Ex: My shell script...