Skip to main content

All Questions

4 votes
2 answers
187 views

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 ...
Dask Bertrand's user avatar
1 vote
0 answers
76 views

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() ...
fgrieu's user avatar
  • 2,980
4 votes
1 answer
130 views

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, ...
Kun Xiang's user avatar
1 vote
0 answers
85 views

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"...
blogger13's user avatar
  • 313
0 votes
0 answers
39 views

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, ...
Stuart Barth's user avatar
-1 votes
1 answer
92 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
  • 4,053
2 votes
1 answer
142 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,814
11 votes
4 answers
797 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
  • 513
1 vote
2 answers
220 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,300
-1 votes
1 answer
93 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,069
-1 votes
2 answers
83 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.6k
0 votes
1 answer
115 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
5 votes
1 answer
296 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.9k
1 vote
1 answer
99 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
130 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,611

15 30 50 per page
1
2 3 4 5
338