Hacker News new | ask | show | jobs
by metacorrector 4293 days ago
yuk. this is the sort of issue that should be solved at the level of the OS, not for every app.

*nix is pretty much "the" cmdline people refer to, and the unix cmdline was well established and in use at microsoft when microsoft created DOS and broke it to shit. No reason to retrofit the breakage backward.

plenty of unix tools don't say anything when you run them with no args, and they're not supposed to, "we" like it that way.

If you have a GUI that can't handle cmdline executables, how about distinguish GUI executables from cmdliners. don't foul the cmdline space with cruft, cruft that works in one context but not in many others. You are explicitly testing to see if you are a descendent of a specific program?

1 comments

i just want to add, you have actually introduced a bug. if your program has any longevity, this misfeature of it will, i predict with confidence, break the program at some point, sooner rather than later, and for no reason other than "it's a hack".