Top "Command-line-arguments" questions

Programming command line utilities that take parameters.

WPF Command Line Arguments, a smart way?

I'm looking for a way that I can parse command line arguments into my WPF application with just a way …

c# wpf command-line-arguments
Command line arguments in Bash

I want to write a bash script which takes different arguments. It should be used like normal linux console programs: …

bash command-line-arguments
How can I use long options with the Bash getopts builtin?

I am trying to parse a -temp option with Bash getopts. I'm calling my script like this: ./myscript -temp /foo/…

bash command-line-arguments getopts
How to give arguments to kill via pipe

I need to search for a certain process and kill that process. I wrote a command like this: ps -e | …

linux bash shell command-line command-line-arguments
Pass ALL Arguments from Bash Script to Another Command

I am writing a very simple script that calls another script, and I need to propagate the parameters from my …

bash scripting parameter-passing command-line-arguments
Python: How to make an option to be required in optparse?

I've read this http://docs.python.org/release/2.6.2/library/optparse.html But I'm not so clear how to make an …

python command-line command-line-arguments
How to parse multiple nested sub-commands using python argparse?

I am implementing a command line program which has interface like this: cmd [GLOBAL_OPTIONS] {command [COMMAND_OPTS]} [{command [COMMAND_…

python command-line-arguments argparse
Argparse: Check if any arguments have been passed

My script should start a demo mode, when the no parameters are given. I tried this: args = parser.parse_args() …

python command-line-arguments argparse
python argh/argparse: How can I pass a list as a command-line argument?

I'm trying to pass a list of arguments to a python script using the argh library. Something that can take …

python command-line-arguments argparse argh
Is char *envp[] as a third argument to main() portable

In order to get an environment variable in a C program, one could use the following: getenv() extern char **environ; …

c environment-variables command-line-arguments