Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It links to https://source.chromium.org/chromium/chromium/src/+/main:ui/... and so does --vulkan and --metal and similar ones.

In the code they have

  const char kANGLEImplementationMetalName[] = "metal";
  const char kANGLEImplementationNoneName[] = "";
So either they intentionally made -- be the none one, or they unintentionally ended up having it be that because the argument names are extracted from the strings and someone put an empty string for the none one.

It seems weird that it would be intentional though so my guess it was by accident. (For example separate people made the arg parsing thing from the person that put an empty string there.) I say it seems weird because conventionally many cli utilities use -- to mean end of arguments. For example so that an argument that is the name of a file can start with dash dash followed by something without being interpreted as a flag. And also so that a command that executes another can separate its own arts from the args of the command it is executing. Things like that.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: