command-line-arguments Questions
3
Solved
After "upgrading" to Mavericks and Xcode 5, I have a variety of minor problems to deal with to make Xcode compile some of my older projects.
It appears that Xcode is passing a new argument to the ...
Izzard asked 4/2, 2014 at 2:43
4
Solved
I'm using commander.js package for parsing command-line arguments: I'd like to make a flag non-optional, the API and tests in the git repo loosely mention making a flag required, but I usually need...
Alevin asked 12/6, 2014 at 1:44
1
Solved
I'm using Stripe CLI to resend local webhook events. The command lets me set metadata using the following option / syntax: https://stripe.com/docs/cli/events/resend#events_resend-param
-d nested[pa...
Doubletime asked 4/8, 2022 at 14:58
2
Solved
The title says it all friends!
How do I give command line arguments to an executable whose execution I want to monitor using ltrace/strace ?
For example, if the executable is 'a.out' and I want t...
Mummer asked 31/8, 2014 at 18:14
2
Solved
Java 9 (jdk-9+170) does not allow by default an application to see all classes from the JDK, unlike all previous versions of Java, due to the new module system.
To workaround this, the java command...
Phira asked 18/5, 2017 at 19:33
5
Solved
I loaded up a small console app that simply reads and prints the first command line argument passed to the program to the console.
I want to pass a newline to the argument I tried this:
prog.exe ...
Primrose asked 11/7, 2012 at 13:42
14
Solved
I am implementing a command line program which has interface like this:
cmd [GLOBAL_OPTIONS] {command [COMMAND_OPTS]} [{command [COMMAND_OPTS]} ...]
I have gone through the argparse documentatio...
Selemas asked 4/5, 2012 at 11:44
28
Solved
I would like to use argparse to parse boolean command-line arguments written as "--foo True" or "--foo False". For example:
my_program --my_boolean_flag False
However, the following test code do...
Bike asked 21/2, 2013 at 17:37
5
I was doing some complex stuff with docker, but as turn out I don't know what -it flag means.
Recently I've come across on some example of docker run command which has confused me a little.
docker ...
Collocutor asked 21/1, 2018 at 15:27
4
Solved
GNU getopt, and command line tools that use it, allow options and arguments to be interleaved, known as permuting options (see http://www.gnu.org/software/libc/manual/html_node/Using-Getopt.html#Us...
Successful asked 2/3, 2012 at 17:15
5
I need to handle two ways of configuring an application. One is via command line arguments, and the other one is from a JSON file (actually, the JSON file is the result of storing the arguments fro...
Layman asked 28/10, 2019 at 16:40
3
Solved
I am new to shell scripting. I have a very basic question about how we read variables defined in our terminal as input to a shell scirpt.
let us say i defined this variable in my terminal
a=22
...
Dystopia asked 8/4, 2017 at 12:34
10
Solved
I'm getting the standard
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle ...
Democritus asked 27/1, 2014 at 14:47
3
Solved
In Visual Studio Code, in the launch.json file that launches the app I'm writing, how do I add command line arguments?
Whiskey asked 11/9, 2019 at 12:55
2
Solved
I'm trying to generate a stereo sine wave using FFMPEG (batch file), but have a different frequency for left and right. So far I have this:
ffmpeg -f lavfi -i "sine=frequency=1000:duration=60" -ac...
Cottingham asked 1/1, 2020 at 8:30
22
Solved
I have a rake task that needs to insert a value into multiple databases.
I'd like to pass this value into the rake task from the command line, or from another rake task.
How can I do this?
Pedigree asked 5/5, 2009 at 16:27
4
Solved
I'm attempting to read words from the command line using argv in C and then sort them in descending order based on their lengths. However, my sorting algorithm is producing unexpected output.
The c...
Minster asked 9/12, 2023 at 14:13
3
Solved
In .NET, we can easily access split command line arguments in a string array from the argument of Main(string[]) or Environment.GetCommandLineArgs(). However, is there a way to get the unparsed com...
Kaz asked 30/5, 2012 at 18:8
2
Solved
I know how to pass fixed arguments in the launch.json, e.g. In Visual Studio Code, how to pass arguments in launch.json . What I really need is a prompt where I can give a value for an argument tha...
Decoy asked 23/5, 2022 at 15:58
11
Solved
Short version:
Is it enough to wrap the argument in quotes and escape \ and " ?
Code version
I want to pass the command line arguments string[] args to another process using ProcessInfo.Argume...
Berezina asked 1/4, 2011 at 7:26
3
Solved
I want to find out from inside the script -- the exact command I used to fire it up. I tried the following:
#!/usr/bin/env python
import sys, os
print os.path.basename(sys.argv[0]), sys.argv[1:]
...
Uncounted asked 13/9, 2012 at 17:27
13
I'm trying to write a program that can compare two files line by line, word by word, or character by character in C. It has to be able to read in command line options -l, -w, -i or --...
if the op...
Karalynn asked 10/3, 2012 at 0:21
4
For example:
gcloud compute disks create --size=10GB my-data-disk
would print 2 things:
Warning:
WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performan...
Harlow asked 14/1, 2016 at 10:51
6
Solved
argparse for python makes it quick and easy to handle command-line input, handling positional arguments, optional arguments, flags, input validation and much more. I've started writing applications...
Genisia asked 15/1, 2012 at 8:15
5
Solved
Is there a way to get the command line arguments in go "tests",
When you call go test obviously your main is not run, so is there a way to process command line arguments,
One way would be to use ...
Aeneid asked 25/1, 2014 at 13:8
1 Next >
© 2022 - 2025 — McMap. All rights reserved.