Navigation Menu

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

flux-version: make flux --version an alias, add manpage #2412

Merged
merged 4 commits into from Sep 30, 2019

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Sep 30, 2019

This PR adds a simple manpage for flux-version(1) (allowing version to appear in output of flux-help(1).

Also, a quick hack is added to make flux -V, --version an alias for flux version (suggested by @SteVwonder)

It would be easy to just provide the flux-version manpage if the flux -V flag is a step too far.

Add a convenience option -V, --version which simply execs flux-version.
Add -V, --version blurb to flux(1) manpage.
Ensure that flux -V, --version works the same as `flux version`.
Add a manpage for flux-version(1) so that `version` appears by
default in `flux help` output list of useful commands.

Fixes flux-framework#2348
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Feel free to set merge-when-passing when you're happy.

@codecov-io
Copy link

Codecov Report

Merging #2412 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2412      +/-   ##
==========================================
+ Coverage   81.11%   81.13%   +0.01%     
==========================================
  Files         225      225              
  Lines       36099    36102       +3     
==========================================
+ Hits        29283    29291       +8     
+ Misses       6816     6811       -5
Impacted Files Coverage Δ
src/cmd/flux.c 83.16% <100%> (+0.25%) ⬆️
src/common/libflux/message.c 80.36% <0%> (+0.13%) ⬆️
src/cmd/flux-job.c 85.26% <0%> (+0.28%) ⬆️
src/modules/job-info/watch.c 70.98% <0%> (+1.03%) ⬆️

@grondo grondo changed the title flux-version: make flux --version and alias and add manpage flux-version: make flux --version an alias, add manpage Sep 30, 2019
@mergify mergify bot merged commit 5ded3e7 into flux-framework:master Sep 30, 2019
@grondo grondo deleted the doc-flux-version branch September 30, 2019 15:41
@garlick garlick mentioned this pull request Sep 30, 2019
@SteVwonder
Copy link
Member

Thanks @grondo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants