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

Revert Add Defaults to ipfs add / Fix default logic of --progress option #3464

Merged
merged 3 commits into from
Dec 5, 2016

Conversation

kevina
Copy link
Contributor

@kevina kevina commented Dec 4, 2016

This

Note: #2657 broke --progress=false. After #2657 when --progress=false a useless progress bar is displayed:

$ ipfs add --progress=false afile 
added QmbWib2kLXUBpG8GZjRfmB3rEVE75SYCnN44AeLNz5Qe5V afile
 0 B / 96.00 MB [----------------------------------------------------------------------------------------------]   0.00%

This pull request fixes that.

The last commit "add cmd: clean up default logic of --progress option" correctly does what I think @RichardLitt was originally trying to do in 03dd669 (part of #2657). If necessary it can be separated out into its own pull request.

In addition to removing the .Default option in the "add" options this
also fixes the --progress option so --progress=false work again.

This reverts commit da4a4ac, reversing
changes made to 518f7e0.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
@whyrusleeping
Copy link
Member

LGTM, thanks @kevina

@whyrusleeping whyrusleeping merged commit cdd5285 into master Dec 5, 2016
@whyrusleeping whyrusleeping deleted the kevina/add-cmd-fixes branch December 5, 2016 00:11
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Dec 5, 2016
@RichardLitt
Copy link
Member

Thanks, @kevina!

@ghost ghost mentioned this pull request Dec 23, 2016
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