5,056 questions
Score of 0
0 answers
88 views
How to pass additional command line arguments when launching Windows store apps from command line?
Windows store apps are special as they don't follow the usual norms of a Windows application. Under normal circumstances, you cannot launch the application by opening its executable. Windows goes out ...
Score of -3
1 answer
180 views
Why are double quotes being stripped away when passed as command line arguments? [duplicate]
This is the complete file, called test.java.
void main(final String[] args)
{
IO.println("args.length = " + args.length);
IO.println("Each line of args below.");
...
Score of 0
1 answer
84 views
Use command substitution as arguments for `cp` command
cp -r $(printf '%q ' "${fs[@]}") bar doesn't work, yet cp -r bar\ foo foo\ bar foo does:
yalihupokn@zoqu-endiman:~/Downloads$ ls -A
yalihupokn@zoqu-endiman:~/Downloads$ mkdir 'bar foo' 'foo ...
Score of 0
1 answer
89 views
Why is CMake introducing -std:c++14 instead of /std:c++14 for compiling with MSVC?
I'm trying to build a program of mine, which using CMake for build configuration (workling via CLiobg. This program's targets require C++14, and I thus define:
foreach(tgt ${compiled-targets})
...
Score of 0
2 answers
120 views
Command line help message with the glib GApplication API
The glib library has a build in system for parsing command line arguments and also for printing a neat help message then "--help" is given.
I think it's good practice to also show this help ...
Score of 4
2 answers
371 views
Can I run a program so that it has no command-line arguments (not even the program's name)?
Can I arrange it so that my program's main() function gets exactly 0 arguments? That is, not even the program's name in argv[0]?
As an example, take the following program, which I would like to print ...
Score of 1
0 answers
89 views
Inconsistency between cmd.exe and CommandLineToArgvW
In Windows (11 version 10.0.26200.7623, January 2026), there's an inconsistency between how cmd.exe constructs the command line for a tool it spawns, and how the API function CommandLineToArgvW() ...
Score of 4
1 answer
205 views
(windows assemby) GetCommandLineA returns string with extra space after the executable name
In cmd, I wrote the following command to test an executable named "msl.exe":
msl test c.exe
The executable calls GetCommandLineA (from the Windows API) and prints the command line. However, ...
Score of 1
0 answers
105 views
How to properly pass shellcode as a command line argument in Windbg using Python (pykd)
I'm using WinDbg and a python script along with the pykd plugin to send shell code to a basic C program in WinDbg.
Here is my python script:
import pykd
import sys
shellcode = "\x64\x8b\x12"...
Score of 0
0 answers
62 views
PETSc-MUMPS Not Properly Responding To Command-Line Option
I have installed PETSc and MUMPS (MacOS 15.6.1, M2), and confirmed that they seem to work fine; i.e., I run the exceutable from the command line:
./mypetscapp
and it runs without issue.
However, ...
Score of -1
1 answer
107 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 ...
Score of 2
1 answer
195 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\...
Score of 11
4 answers
930 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 ...
Score of 1
2 answers
366 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");
...
Score of -1
1 answer
102 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 ...