Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -v and/or --version options as an alias to -version #6636

Closed
vicuna opened this issue Oct 28, 2014 · 5 comments

Comments

Projects
None yet
2 participants
@vicuna
Copy link

commented Oct 28, 2014

Original bug ID: 6636
Reporter: @whitequark
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:49:27Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.2+dev / +rc1
Target version: 4.02.3+dev
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Tags: patch, junior_job
Monitored by: @whitequark @gasche

Bug description

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.

File attachments

@vicuna

This comment has been minimized.

Copy link
Author

commented Oct 29, 2014

Comment author: @damiendoligez

Note: -v is already used by some of the commands to print a more verbose version message. This should not be changed.

@vicuna

This comment has been minimized.

Copy link
Author

commented Dec 19, 2014

Comment author: @whitequark

I've attached a more conservative version of the patch which does not touch -v. gasche, can you please take a look?

@vicuna

This comment has been minimized.

Copy link
Author

commented Feb 28, 2015

Comment author: @whitequark

Ping?

1 similar comment
@vicuna

This comment has been minimized.

Copy link
Author

commented Mar 6, 2015

Comment author: @whitequark

Ping?

@vicuna

This comment has been minimized.

Copy link
Author

commented May 24, 2015

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.)

@vicuna vicuna closed this Dec 7, 2016

@vicuna vicuna added the junior-job label Mar 14, 2019

@vicuna vicuna added this to the 4.02.3 milestone Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.