Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add -v and/or --version options as an alias to -version #6636
Original bug ID: 6636
Both -v and --version are de-facto standard options for command-line utilities, and something that's well-known to almost all *nix users. OCaml already listens to --help; I think it should accept those forms as well.
Additionally, the --help screen could include the version, as it also commonly happens with CLI utilities.
1 similar comment
Comment author: @gasche
Sorry, this patch fell off my radar despite your tenacious pings. I just committed this to trunk.
(It would be safe to go in the 4.02.2 branch of course, but people have already starting testing the branch in depth in preparation of the release, so I'd rather add as few additional commits as possible.)