5,058 questions
0 votes
1 answer
76 views
Can I construct my own env::Args instance in Rust for testing purposes? [duplicate]
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 ...
2 votes
1 answer
96 views
Launching a python script in vscode with arguments I get FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\USERNAME\\FolderName'
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\...
12 votes
4 answers
664 views
How to correctly pass a filename with a single quote to ffmpeg's subtitles filter in Python?
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 ...
1 vote
2 answers
134 views
System.CommandLine root command option handler fallback
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"); ...
-1 votes
1 answer
90 views
What would be a suitable way to receive run-time arguments and combine them into an iterable object? [closed]
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 ...
-1 votes
2 answers
72 views
Does ArgumentParser support different arguments per file, ffmpeg style?
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 ...
0 votes
1 answer
110 views
What is wrong with my reading of command line arguments? [duplicate]
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. ...
0 votes
0 answers
42 views
How to open additional files in existing OpenSCAD instance
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 ...
5 votes
1 answer
210 views
How does Rust's Command handle cmd.exe and batch script arguments?
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 ...
1 vote
1 answer
86 views
gcc OR clang command line invocation argument / parameter order precidence Last or First wins?
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 ...
-1 votes
1 answer
94 views
-r (--reuse-window) not working in code command at all
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 ...
2 votes
1 answer
67 views
bash: -- being caught by first option, rather than by -- case
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 ...
0 votes
1 answer
85 views
Ansible WebSphere Liberty Install Failing
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 ...
0 votes
1 answer
107 views
How to implement logic to process dynamic command-line arguments with Spring Shell?
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 ...
0 votes
1 answer
348 views
Implementing --interactive with System.CommandLine
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, ...