Top "Arguments" questions

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

How do I expand a tuple into variadic template function's arguments?

Consider the case of a templated function with variadic template arguments: template<typename Tret, typename... T> Tret func(…

c++ c++11 arguments tuples
Can you list the keyword arguments a function receives?

I have a dict, which I need to pass key/values as keyword arguments.. For example.. d_args = {'kw1': …

python arguments introspection
Prolog - Arguments are not sufficiently instantiated

I am writing a little program which counts how many elements in a list are not numbers. Here is my …

prolog arguments clpfd instantiation-error
C++ - char** argv vs. char* argv[]

What is the difference between char** argv and char* argv[]? in int main(int argc, char** argv) and int main(…

c++ main arguments
Batch-Script - Iterate through arguments

I have a batch-script with multiple arguments. I am reading the total count of them and then run a for …

loops batch-file arguments command-line-arguments
How do you specify a required switch (not argument) with Ruby OptionParser?

I'm writing a script and I want to require a --host switch with value, but if the --host switch isn't …

ruby arguments optionparser
run Mac Chrome with command line arguments as a background process

I have 2 aliases on my .bash_profile file containing: alias chrome="/Applications/Google\\ \\Chrome.app/Contents/MacOS/Google\\ \\Chrome" alias …

google-chrome daemon arguments background-process
Multiple arguments vs. options object

When creating a JavaScript function with multiple arguments, I am always confronted with this choice: pass a list of arguments …

javascript json function object arguments
How to deal with name/value pairs of function arguments in MATLAB

I have a function that takes optional arguments as name/value pairs. function example(varargin) % Lots of set up stuff …

function matlab arguments function-parameter name-value
Error - input expected at most 1 argument, got 3

I've set up the following for loop to accept 5 test scores. I want the loop to prompt the user to …

python arguments traceback