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

cmd: print usage if not enough args #1491

Merged
merged 2 commits into from
Feb 28, 2022
Merged

cmd: print usage if not enough args #1491

merged 2 commits into from
Feb 28, 2022

Conversation

SandyXSD
Copy link
Contributor

No description provided.

@SandyXSD SandyXSD requested a review from davies February 28, 2022 09:37
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2022

Codecov Report

Merging #1491 (db1f36f) into main (be0a8fc) will increase coverage by 0.10%.
The diff coverage is 71.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1491      +/-   ##
==========================================
+ Coverage   59.72%   59.83%   +0.10%     
==========================================
  Files         132      132              
  Lines       22170    22132      -38     
==========================================
+ Hits        13241    13242       +1     
+ Misses       7368     7346      -22     
+ Partials     1561     1544      -17     
Impacted Files Coverage Δ
cmd/destroy.go 14.28% <0.00%> (+0.21%) ⬆️
cmd/gateway.go 33.33% <0.00%> (+0.56%) ⬆️
cmd/profile.go 15.70% <0.00%> (+0.11%) ⬆️
cmd/stats.go 20.07% <0.00%> (+0.15%) ⬆️
cmd/webdav.go 74.35% <0.00%> (+6.91%) ⬆️
cmd/main.go 48.86% <66.66%> (-1.72%) ⬇️
cmd/bench.go 80.06% <100.00%> (+0.51%) ⬆️
cmd/config.go 68.12% <100.00%> (+0.84%) ⬆️
cmd/dump.go 78.04% <100.00%> (+3.63%) ⬆️
cmd/format.go 64.84% <100.00%> (+0.99%) ⬆️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be0a8fc...db1f36f. Read the comment docs.

@@ -102,6 +102,7 @@ func sendCommand(cf *os.File, batch []string, count int, threads uint, backgroun
}

func warmup(ctx *cli.Context) error {
setup(ctx, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If warmup with -f option, the positional argument is not necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

lgtm

@davies davies merged commit 632953a into main Feb 28, 2022
@davies davies deleted the fix-cmd-usage branch February 28, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants