Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

I'm writing a Rust program where I do manual command-line argument parsing. I skip the first argument since that's the executable and I don't care about that, then check the second argument for what ...
Newbyte's user avatar
  • 3,957
2 votes
1 answer
100 views

I am trying to debug python code in vscode using a launch config that asks for command line arguments. My script is located here: C:\Users\USERNAME\FolderName - With Spaces\_MyHome\Documents\Dev\...
skeetastax's user avatar
  • 1,816
12 votes
4 answers
671 views

I'm writing a Python script using subprocess to hardcode subtitles onto a video. My code builds a complex filter graph for ffmpeg's -vf argument, which includes burning in multiple layers of styled ...
phpjunkie's user avatar
  • 475
1 vote
2 answers
137 views

I want to add a Option<bool> to the root command but still show the default output when the option is not provided. RootCommand rootCommand = new RootCommand("My root command"); ...
khteh's user avatar
  • 4,280
-1 votes
1 answer
90 views

I'm struggling to get runtime arguments and combine them into a list. I'd like for run-time arguments to be like the following python main.py --all or python main.py --endpoint1 --endpoint2. I only ...
simplycoding's user avatar
  • 3,011
-1 votes
2 answers
74 views

I want my application to work on several files and have a different set of options for each input file: python my.py -a file_a -b file_b --do-stuff=x file_c ffmpeg uses this idea for its command line ...
anatolyg's user avatar
  • 28.5k
0 votes
1 answer
110 views

I am writing a program for working with functions and graphs, but that is beside the point. In my int main() I just look at the command line arguments, and then match them up to the expected result. ...
qweenkie's user avatar
0 votes
0 answers
43 views

In case it matters, I'm running 2025.06.25 of OpenSCAD. If I have an instance of OpenSCAD running I can open additional source files such as libraries in the same instance using the menu system. Such ...
bielawski's user avatar
  • 1,740
5 votes
1 answer
215 views

A while ago there was a security advisory published for Rust that the standard library's Command API was not sufficiently handling arguments passed to cmd.exe and .bat files such that malicious ...
kmdreko's user avatar
  • 65.4k
1 vote
1 answer
86 views

Search engines and reading the manuals are failing me. I'm not sure if there's a way to have E.G. gcc or clang output the final 'configuration' result of parsed command line arguments to check myself ...
Michael J. Evans's user avatar
-1 votes
1 answer
95 views

I used a new machine with VSCode for the 1st time. I moved my dev setup there, including EDITOR env var with code -wr. But I noticed e.g. git wasn't opening the file in the same window, unlike on old ...
Destroy666's user avatar
  • 1,601
2 votes
1 answer
67 views

I have a script that parses command line arguments after using getopt. The issue is that the -- before my positional arguments is caught by my --usage) case, thus showing usage text erroneously. Is ...
CompSciDude's user avatar
0 votes
1 answer
86 views

My Ansible task to install Liberty on an AIX server worked as expected and then when I tried another version it just fails now. It's possible that I am not seeing the actual cause of my issue but ...
Jason Skeel's user avatar
0 votes
1 answer
107 views

I'm working on a Spring Shell-based application where I need to process dynamic command-line arguments. I have implemented logic for a specific format, but I’m encountering issues when the order and ...
Raghuveera Kore's user avatar
0 votes
1 answer
352 views

I have a System.CommandLine .NET 9 command line application. It's mostly used for scheduled tasks and the like, but sometimes users need to run it manually. When run manually, while the help is good, ...
Keith's user avatar
  • 157k
0 votes
0 answers
61 views

How can we pass long xml message as a command line argument in Java? I'm struggling to pass below xml message as a argument, actually I've developed a simulator to publish different xml messages to ...
PAA's user avatar
  • 12.2k
1 vote
3 answers
139 views

First of all, I cannot share the original code so I apologize in advance if the example used does not make sense. I also know the code I present has some issues and will not run as it is, but it is ...
Jaime 's user avatar
  • 143
0 votes
1 answer
29 views

After attaching to a process in the Visual Studio debugger, I want to find what this process's command line arguments are, how can I do that?
yairchu's user avatar
  • 25k
1 vote
0 answers
31 views

I am using this setup.exe to install the application by passing MSI parameters directly to the MSI via the command line: setup.exe/s /v"/l*V installer.log INSTALLDIR="""C:\Program ...
Harsh Upparwal's user avatar
0 votes
0 answers
101 views

I am trying to install a desktop application through the command line. The application comes with an installer package, such as setup.exe, which was created using InstallShield. I am using this setup....
Harsh Upparwal's user avatar
2 votes
1 answer
342 views

How to inject the command line arguments to a Quarkus applicaiton? Normally we use Maven, Gradle or CLI to run a Quarkus application. But how can we inject command line arguments to the execution? It ...
msd.salehi's user avatar
  • 1,159
1 vote
1 answer
98 views

I'm using a Powershell script that I found here: https://github.com/Simbiat/SnoozeGuard The works by passing a string array and intended, when run in the usual way: > C:\fullPathToSnoozeGuard.ps1 -...
Unknown's user avatar
  • 163
0 votes
1 answer
205 views

I have a metaflow flowspec with a decorator @some_decorator(parameter="something"). Is it possible to set things up so that I can set the parameter to the decorator via a command line ...
Foster's user avatar
  • 23
9 votes
1 answer
402 views

I have guessed multiple syntax variations to achieve this in a single line in the MAIN function. I know I could achieve it in two separate lines, but am looking for the cleaner solution and only ...
David Gordon's user avatar
0 votes
2 answers
279 views

Okay, so I've been trying to learn Scala from a textbook, but it was written before Scala 3 was released so a lot of the example code doesn't compile. Here's how the book introduces command line ...
Eldigan of Nordion's user avatar
1 vote
0 answers
73 views

Argu is a great library to read program arguments in F#. But in case of modularization, is it possible somehow to merge different arguments without subcommands? Let's say you have a bunch of command ...
Slesa's user avatar
  • 245
0 votes
1 answer
2k views

How to get access to command line arguments with Zig code? When starting program like this: $ path/my-program foo bar I'd like to get strings path/my-program, foo and bar in my code. Either as c-...
Juha Syrjälä's user avatar
0 votes
1 answer
148 views

I am trying to pass parameter value using quarto CLI and use it in Quarto file with Python code but it's not working. Command used: quarto render test.qmd -P foo:5 --output test_cmd_out.html Quarto ...
ViSa's user avatar
  • 2,357
1 vote
0 answers
60 views

Regarding to I have created a configuration in launch.json { "name": "my_upp (debug mode command-line)", "cwd": "my_upp", ...
Miamy's user avatar
  • 2,297
1 vote
2 answers
237 views

I've been wrapping my head around this problem and can't find a solution. I have a pretty simple code: import argparse import json def main(): parser = argparse.ArgumentParser(description="...
Freejack's user avatar
  • 300
0 votes
1 answer
54 views

What is the difference between using - and -- in shell commands? I've seen commands like this: pip install -U library and: npm i --someOption package Is there a difference. Are they just that -- is a ...
blazgocompany's user avatar
1 vote
2 answers
54 views

Consider the following toy example: cat extended_help.py import argparse ap = argparse.ArgumentParser() ap.add_argument("-H", "--help-all", action = "version", ...
mschilli's user avatar
  • 1,894
2 votes
0 answers
88 views

#include <stdio.h> #include <getopt.h> #include <stdlib.h> #define PORT 12344 int main(int argc, char** argv) { int opt; int server_fd, client_fd, epoll_fd; int ...
Udeshya D.'s user avatar
1 vote
0 answers
26 views

I wanted to print out first command line argument in x86_64 Assembly on Linux, but I have had hard time getting value of it. For clarification: commands I use to compile this are as -o args.o args.s -...
kaidezee's user avatar
0 votes
1 answer
64 views

I'm trying to check if an optional argument is supplied by the user but I want to set its default value if it is not supplied. If I try to use if statement by exploiting None, the default in help ...
Divyajyoti's user avatar
0 votes
1 answer
265 views

Long time reader, first time poster. I recently read an article on command line obfuscation and I need an adult to explain to me Barney style how does ( [sTrING]::JOIn(” ,(’39s33-43%114y56F116j114%...
Mr.Squishy's user avatar
2 votes
0 answers
297 views

I have a Java importer application that is executed via a scheduler (also from me) by usage of ProcessBuilder. The scheduler passes a file path to the started application as an argument in the process ...
user27508058's user avatar
0 votes
1 answer
197 views

I have developed a packaged desktop Windows App SDK app that has the option run on system startup using StartupTask. This works well, but now I also want the option to start with the window in the ...
redraider's user avatar
0 votes
2 answers
224 views

I am debugging my code using a launch.json file. I have a long list of command line arguments: "args": [ "-i", "inputfile", &...
anatolyg's user avatar
  • 28.5k
1 vote
1 answer
157 views

I am attempting to create a program with the following command line usage: test_program [General Options] <mode_1_option_1> <required_option_1> OR test_program [General Options] --toggle-...
Danny Brent's user avatar
1 vote
0 answers
21 views

I am passing am trying to pass directories-with-spaces as arguments on windows 11, and using PS autocomplete (TAB) to provide the full name. The '.\a b\' gets naturally completed through powershell, ...
nipil's user avatar
  • 140
-1 votes
1 answer
226 views

I am building a spring boot based command line utility written in java for teams in my organization. I will have to allow teams to pass arbitrary command line args that can contain spaces. I tried ...
Haunted's user avatar
  • 475
1 vote
0 answers
46 views

Powershell has Start-Process cmdlet (start a new process) which can be a new powershell and get it to run whatever e.g. via -Command & {scriptblock} . Limitation on/after ‘-Command ‘ of 32,760 ...
SimonTi's user avatar
  • 21
0 votes
1 answer
84 views

I have no idea why modifying the code mentioned here to the following doesn't work? The variables are not accessible inside the tests and setup is being invoked before every test despite the scope ...
yowaf21832's user avatar
0 votes
1 answer
66 views

If I have a very simple shell script like this: echo "thing 1?" read input1 echo $input1 echo "thing 2?" read input2 echo $input2 How can I call the script/command with only 1 of ...
Rosey's user avatar
  • 871
1 vote
4 answers
398 views

I have files with single quotes in their name, say o'a. I want to process them in awk (gawk-5.3.0): (fd is an alternative to find). Please don't tell me about fd -x option, my command is snippet of a ...
jgran's user avatar
  • 1,304
0 votes
1 answer
115 views

I would like my python script to produce a text file containing the exact command line the user entered to invoke the script. In the past, I have done the following in bash: echo "$0" "$...
Stephen's user avatar
  • 3,641
1 vote
1 answer
70 views

I have a command which works without issue in cmd.exe: %TESTING_INSTALLATION_PATH%\\client\\batch.exe --log-level=error --run %CI_BUILDS_DIR%\\autotest\\jobs\\clear.py But it doesn't work in ...
IzaeDA's user avatar
  • 439
0 votes
1 answer
91 views

I want to use terminal script to open both of my working folders using VS code at once. I'm currently using this @echo off start code "path to folder 1" start code "path to folder 2&...
Divyanshu Bhujbal's user avatar
0 votes
1 answer
47 views

I am trying to run a bash script for rescaling fMRI data using AFNI's 3dcalc. One of the arguments for this function is "expr" which will "Apply the expression - within quotes - to the ...
Connor Johnson's user avatar

1
2 3 4 5
102