AppImageCommunity / zsync2

Rewrite of https://github.com/AppImage/zsync-curl, using modern C++, providing both a library and standalone tools.
Other
132 stars 25 forks source link

Implement -v --verbose #6

Closed probonopd closed 6 years ago

probonopd commented 6 years ago

Currently we can set an environment variable CURLOPT_VERBOSE=1 but one has to remember this. It would be more convenient if we could achieve the same by passing in -v or --verbose as a parameter.

TheAssassin commented 6 years ago

zsync2 is pretty verbose already. CURLOPT_VERBOSE only triggers curl to post every HTTP request.

Should -v therefore primarly putenv("CURLOPT_VERBOSE=1")?

probonopd commented 6 years ago

Yes

TheAssassin commented 6 years ago

Implemented in https://github.com/TheAssassin/zsync2/commit/9614de8a3d1f37758f16a0e259556bf32622016e.