3 ms·
Nice tool. But I would think about using traditional “--“ for passing conflicting arguments to a script instead of really-really approach. Double dash means sto
by wruza 4y ago
Nice tool. But I would think about using traditional “--“ for passing conflicting arguments to a script instead of really-really approach. Double dash means stop processing args and pass/use them as is. This way you can e.g. rm a file named “-f” or echo a string “-n”.
rm -- -f
echo -- -n
- ianthehenry 4y agoYeah, the problem is that I am very likely to write a script that takes `--` as an argument, and I don't want to have to write `-- --` when I call it. I am very unlikely to write a script that takes `--really` as an argument, so it's a little less annoying.
- wruza 4y agoMy bad, I failed to think about it in a context of a personal launcher… now that you said it, it sounds much more reasonable than --!