Top "Command-line-arguments" questions

Programming command line utilities that take parameters.

Handle spaces in argparse input

Using python and argparse, the user could input a file name with -d as the flag. parser.add_argument("-d", "…

python command-line-arguments user-input argparse spaces
How to get the nth positional argument in bash?

How to get the nth positional argument in Bash, where n is variable?

bash arguments command-line-arguments
What is the difference between "$@" and "$*" in Bash?

It seems to me that they both store all the command-line arguments. So is there a difference between the two?

bash variables command-line-arguments
Windows is not passing command line arguments to Python programs executed from the shell

I'm having trouble getting command line arguments passed to Python programs if I try to execute them directly as executable …

python windows registry command-line-arguments file-association
What is the format for --date parameter of git commit

I need to overwrite the date of the commit of git, all the documentation points to --date parameter, but then …

git command-line-arguments
Powershell with Robocopy and Arguments Passing

I'm trying to write a script that uses robocopy. If I were just doing this manually, my command would be: …

powershell command-line-arguments robocopy
Can command line flags in Go be set to mandatory?

Is there a way how to set that certain flags are mandatory, or do I have to check for their …

go command-line-interface command-line-arguments
Auto-complete command line arguments

In bash, executables such as mplayer and imagemagick's "convert" have a cool auto-complete functionality on their command line arguments. For …

command-line autocomplete command-line-arguments
Parsing command line arguments in R scripts

Is there any convenient way to automatically parse command line arguments passed to R scripts? Something like perl's Getopt::Long?

parsing r command-line-arguments
Is it possible to accept custom command line parameters with Inno Setup

I am preparing an installer with Inno Setup. But I'd like to add an additional custom (none of the available …

command-line inno-setup command-line-arguments