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
Closed

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

vicuna opened this issue Oct 28, 2014 · 5 comments
Assignees
Milestone

Comments

@vicuna
Copy link

vicuna 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
Copy link
Author

vicuna 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
Copy link
Author

vicuna 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
Copy link
Author

vicuna commented Feb 28, 2015

Comment author: @whitequark

Ping?

1 similar comment
@vicuna
Copy link
Author

vicuna commented Mar 6, 2015

Comment author: @whitequark

Ping?

@vicuna
Copy link
Author

vicuna 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 as completed Dec 7, 2016
@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
Projects
None yet
Development

No branches or pull requests

2 participants