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...
- Modified
- 10 Jan at 06:46
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...
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:/...
- Modified
- 7 Aug at 12:36
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...
- Modified
- 9 Apr at 11:57
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...
- Modified
- 1 Sep at 16:3
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...
- Modified
- 21 Nov at 00:48
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?
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:
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...
- Modified
- 9 Mar at 12:46
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...
- Modified
- 8 Sep at 14:32
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...
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, ...
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...
- Modified
- 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...
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...
- Modified
- 6 Oct at 01:20
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. ...
- Modified
- 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(...
- Modified
- 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...
- Modified
- 18 Aug at 02:43
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;...
- Modified
- 8 Feb at 21:23
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...
- Modified
- 30 Jun at 14:30
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 --...
- Modified
- 31 May at 07:38
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...
- Modified
- 2 Mar at 14:15
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...
- Modified
- 2 Jul at 03:46
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...
- Modified
- 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...
- Modified
- 22 Sep at 21:53