tagged [arguments]
Best way to check function arguments?
Best way to check function arguments? I'm looking for an efficient way to check variables of a Python function. For example, I'd like to check arguments type and value. Is there a module for this? Or ...
"Parameter" vs "Argument"
"Parameter" vs "Argument" I got and kind of mixed up and did not really pay attention to when to use one and when to use the other. Can you please tell me?
- Modified
- 10 Dec at 06:18
What is the best way to pass a stream around
What is the best way to pass a stream around I have tried to pass stream as an argument but I am not sure which way is "the best" so would like to hear your opinion / suggestions to my code sample I p...
How do I pass a command line argument while starting up GDB in Linux?
How do I pass a command line argument while starting up GDB in Linux? I have to debug a program that has errors in it as part of my assignment. However, I must first pass command line arguments in ord...
- Modified
- 22 Aug at 18:50
C default arguments
C default arguments Is there a way to specify default arguments to a function in C?
- Modified
- 8 May at 09:2
mkdir's "-p" option
mkdir's "-p" option So this doesn't seem like a terribly complicated question I have, but it's one I can't find the answer to. I'm confused about what the `-p` option does in Unix. I used it for a lab...
- Modified
- 26 Mar at 15:16
Best way to parse command-line parameters?
Best way to parse command-line parameters? What's the best way to parse command-line parameters in Scala? I personally prefer something lightweight that does not require external jar. Related: - [How ...
- Modified
- 19 Feb at 06:1
Converting list to *args when calling function
Converting list to *args when calling function In Python, how do I convert a list to `*args`? I need to know because the function wants several time_series objects passed as `*args`, whereas I have a ...
- Modified
- 31 Jan at 20:2
How can I pass arguments to a batch file?
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 hardcoding them into the file. Here's what the command line looks like:
- Modified
- 30 Jan at 10:3
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
docker build with --build-arg with multiple arguments
docker build with --build-arg with multiple arguments According to the [documentation](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables-build-arg), it's possible to...
Argument list too long error for rm, cp, mv commands
Argument list too long error for rm, cp, mv commands I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars). When I try to delete all PDFs toge...
- Modified
- 11 Nov at 17:28
How can I find out if an .EXE has Command-Line Options?
How can I find out if an .EXE has Command-Line Options? Suppose you have an .EXE and you want to check if it has Command-Line Options. How can one know if the .EXE has this ability. In my case I know ...
- Modified
- 31 Oct at 14:12
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
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 do I pass command line arguments to a Node.js program?
How do I pass command line arguments to a Node.js program? I have a web server written in [Node.js](http://en.wikipedia.org/wiki/Node.js) and I would like to launch with a specific folder. I'm not sur...
- Modified
- 14 Jun at 04:3
Import SQL file by command line in Windows 7
Import SQL file by command line in Windows 7 I want to import an SQL file (size > 500MB) into a database. I have wamp on my PC. Phpmyadmin does not work well with this size. I changed all parameters i...
- Modified
- 5 Apr at 03:27
Is there a "standard" format for command line/shell help text?
Is there a "standard" format for command line/shell help text? If not, is there a de facto standard? Basically I'm writing a command line help text like so: ``` usage: app_name [options] required_inpu...
- Modified
- 17 Oct at 09:42
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
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
Generic methods and optional arguments
Generic methods and optional arguments Is it possible to write similar construction? I want to set, somehow, default value for argument of type T. Additionally, I found
- Modified
- 21 Jul at 20:27
Canonical solution for escaping .NET command line arguments
Canonical solution for escaping .NET command line arguments : Given a file name and an arbitrary list of strings, is there a to create a single command line such that [Environment.GetCommandLineArgs](...
- Modified
- 23 May at 12:24
How best to determine if an argument is not sent to the JavaScript function
How best to determine if an argument is not sent to the JavaScript function I have now seen 2 methods for determining if an argument has been passed to a JavaScript function. I'm wondering if one meth...
- Modified
- 23 May at 12:3
How to parse command line output from c#?
How to parse command line output from c#? I want to execute an application(command line application) from the C#... and I want after executing this application and providing the input to it, I want to...
- Modified
- 23 May at 12:2
In C#, should one check references passed to methods against null?
In C#, should one check references passed to methods against null? Well, a few months ago I asked [a similar question about C and C++](https://stackoverflow.com/questions/4390007/in-either-c-or-c-shou...
- Modified
- 23 May at 11:59