Top "Command-line-arguments" questions

Programming command line utilities that take parameters.

Pass command line arguments as well as input from STDIN for Perl script?

I have a Perl script which takes both command line arguments and STDIN #!/usr/bin/perl -w use strict; use …

perl stdin command-line-arguments argv
Is it possible to pass in command line variables to a bitbake build?

I have an OpenEmbedded environment using bitbake to do some builds. I wanted to get something "interactive" going on where …

build command-line-arguments compiler-flags openembedded bitbake
What's the difference between --add-exports and --add-opens in Java 9?

Java 9 (jdk-9+170) does not allow by default an application to see all classes from the JDK, unlike all previous versions …

java command-line-arguments java-9 java-platform-module-system java-module
Default sub-command, or handling no sub-command with argparse

How can I have a default sub-command, or handle the case where no sub-command is given using argparse? import argparse …

python parsing command-line-arguments argparse subcommand
Using Boolean Flags in Python Click Library (command line arguments)

I'm trying to make a verbose flag for my Python program. Currently, I'm doing this: import click #global variable verboseFlag = …

python command-line-arguments python-click
Python will not read sys.argv

import sys print sys.argv[1] hi, this may seem very basic but I can't get Python to read in anything …

python command-line-arguments sys
Python Command Line Arguments: Calling a function

So I'm stuck on a project I'm working on that involves the command line in python. So basically, here's what …

python command-line command-line-arguments argparse optparse
How can I require my python script's argument to be a float between 0.0-1.0 using argparse?

I'd like to use argparse on Python 2.7 to require that one of my script's parameters be between the range of 0.0 …

python range command-line-arguments argparse
CMD nested double quotes in argument

I am having problems with passing arguments to a batch function with nested double quotes. Here is an example of …

batch-file cmd command-line-arguments double-quotes
The issue of * in Command line argument

I wrote a program in Java that accepts input via command line arguments. I get an input of two numbers …

wildcard command-line-arguments glob