This repository was archived by the owner on Dec 18, 2017. It is now read-only.
"kpm restore --quiet" hides HTTP requests/cache information #578
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
parent #577
An interesting usage mentioned by @davidfowl is
kpm --verbose restore --quiet
. For my implementation, in this case,--verbose
wins and here is the reason:If
--quiet
wins,kpm restore
blocks without showing HTTP requests/cache information. So the user might not notice that he mistakenly specified--verbose
and--quiet
together because he might think thatkpm restore
is blocking for some silent operations.If
--verbose
wins, we show a bunch of HTTP request/cache information instantly after the user hit Enter key. So the user can easily notice he specified--verbose
. The basic idea is that we make the behavior obvious & quick enough to draw users' attention.@Eilon , do you like the idea above? Or we can give an error saying
--verbose
and--quiet
are mutually exclusive.