Questions tagged [arguments]

An argument is a value passed to a function, procedure, or command line program. This also refers to the Array-like `arguments` object in JavaScript.

An argument is a value passed to a function, procedure, or program. It is often used interchangeably with the word "parameter", which also has more specific definitions. Usually "argument", or "actual parameter" (as opposed to "formal parameter") is the value of the parameter used within the called routine.

In other words, parameters are used in procedure definitions, and arguments are used in procedure calls.

arguments can also refer to the Array-like object in JavaScript that is available inside functions, this object can be used to access all of the function's arguments regardless of the function's signature.

11091 questions
4
votes
4 answers

self extracting zip taking arguments

I am looking for a tool that will allow me to create a self extracting executable file which can take arguments. The arguments will later be passed on to the batch file that is residing within the package that the self extracting exe contains. Here…
santahopar
  • 2,933
  • 2
  • 29
  • 50
4
votes
4 answers

how to pass commandline argument include "|" to java program

One of the arguments passed to my java program is like this, ab|cd. Initially, when I run the java program, like this, $ java className ab|cd it fails, since | is interpreted in the linux shell as a pipe symbol. So only ab is passed into java…
Richard
  • 14,642
  • 18
  • 56
  • 77
4
votes
1 answer

C++ function template causing input arguments to error

how would i create a function that uses templates within itself but not in its arguments? i have a lot of classes that have the same constructors and functions, but do different things within their constructors, so im trying to create a function…
calccrypto
  • 8,583
  • 21
  • 68
  • 99
4
votes
2 answers

Constructor template instantiation with default arguments

I have a constructor prototype that looks like: template window( const int size[2], const char* caption="Window", const SDL_Surface* icon=NULL, bool fullscreen=false, bool vsync=true, bool resizable=false, int…
geometrian
  • 14,775
  • 10
  • 56
  • 132
4
votes
2 answers

functions overloaded with different number of arguments

A lot of the Clojure functions accept various number of arguments and I'm often a bit confused by the documentation and how it relates to the way I should be using the function. For example (doc partial) returns this: ([f arg1] [f arg1 arg2] [f arg1…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
4
votes
3 answers

passing a command to gdb when running a program

I am using gdb to debug a program, and I want to have the output of the command $(perl -e 'print "A"x20') as my argument. How can I do that? This way the argument would be very flexible.
wakandan
  • 1,099
  • 4
  • 19
  • 27
4
votes
0 answers

Trying to pass multiple command line parameters to javaws launch application?

I have seen similar questions about this but none of them have been able to help me resolve my issue. I have been given a requirement to be able to pass in multiple command line parameters to launch a custom Java application we use. Anyway I have…
4
votes
4 answers

Pass arguments between Objective-C applications

I was wondering if it is possible to pass arguments between Mac applications and if it possible, how. I know that in Java is possible using the following syntax from the command line: java JavaApp arg1 arg2 arg3 arg4 And that is possible to access…
Alex Salom
  • 3,074
  • 4
  • 22
  • 33
4
votes
4 answers

Command line arguments with multiple values

I'm doing a perl script and I need to get multiple values from the command line. Example: perl script.pl --arg1 op1 op2 op3 I'm using Getopt::Long and I can get this to work: perl script.pl --arg1 op1 --arg1 op2 --arg1 op3 But I really need (want)…
Chris911
  • 4,131
  • 1
  • 23
  • 33
4
votes
1 answer

Adding arguments to HTML link to a local file in an email

Is there any way to add arguments to a file:/// call within an email? Ideally I'd like my recipients to be able to click a link that would launch a program with some extra arguments. Thus far I know I can do an HTML link like
Cryptite
  • 1,426
  • 2
  • 28
  • 50
4
votes
2 answers

How to describe function arguments in dynamic typed languages?

My question is more oriented toward Python, but it may also be about JavaScript or other scripting languages. I usually develop with statically typed languages (Java, C++, ActionScript, ...). I like to use from time to time Python, and I also need…
4
votes
1 answer

Is possible to inject method with arguments in Spring?

From docs: In the client class containing the method to be injected (the CommandManager in this case), the method that is to be 'injected' must have a signature of the following form: [abstract]
user710818
  • 23,228
  • 58
  • 149
  • 207
4
votes
1 answer

Passing Regex Pattern From Sub to Function in Excel VBA

I'm trying to pass a Regex pattern to a Function in Excel VBA, but the pattern seems to be of none effect. I've inserted msgbox'es to see what the string looks like, and they turn out ok. Here's the code I'm using. Sub clean_COP_names() Dim…
buck1112
  • 504
  • 8
  • 24
4
votes
2 answers

C : send different structures for one function argument

I have a function that draws a circle using OpenGL, I would like to pass it a structure containing the x and y coordinates and the radius. The problem is this same function has to be used with 3 different structures all containing the coordinates,…
DennisVDB
  • 1,347
  • 1
  • 14
  • 30
4
votes
8 answers

php function arguments

I don't know how or where I got this idea in my head but for some reason I thought this was possible. Obviously after testing it doesn't work, but is there a way to make it work? I want to set $value2 without having to enter anything at all for…
Clint C.
  • 678
  • 13
  • 31