Argh, that's when I wished for object oriented shells. Powershell sure isn't perfect but objects encoding their own meaning really helps differentiate those cases (but it may not always help the user if types aren't clear to the reader)
By the way, something munched the article title. An emdash is incorrect command-line usage. It’s supposed to be a double hyphen.
I wonder: would it not be better to tell users with those edge cases to fix their problems some other way? To take an example from the article: why does someone have a filename beginning with a dash? Maybe don't do that.
git cmd --options -- rev -- pathspec
would be the fully specified revspec and pathspec git cmd --option -- rev --
would be just the revspec, excluding accidental options, without a pathspec git cmd --option revspec -- pathspec
and the single "--" would work as it currently does.
metadat•30m ago
Remembering app-specific one-offs is kind of the worst!
doctoboggan•24m ago
https://stevelosh.com/blog/2013/04/git-koans/
p-e-w•19m ago