logoalt Hacker News

Dwedittoday at 2:50 PM1 replyview on HN

Even just "-" in a filename is problematic, since you can name actual files with "--" at the beginning, and the name could match a switch.


Replies

badc0ffeetoday at 3:44 PM

Typically you can use the -- arg to indicate that everything to the right should not be interpreted as a switch.

show 1 reply