Backblaze / B2_Command_Line_Tool

The command-line tool that gives easy access to all of the capabilities of B2 Cloud Storage
Other
540 stars 123 forks source link

Unify CLI argument flag style #1000

Closed vbaltrusaitis-reef closed 6 months ago

vbaltrusaitis-reef commented 6 months ago

Both style flags are still supported in CLI v3 binary (although using --camelCase will result in warnings). v4 will only support --dash-style.

ppolewicz commented 6 months ago

Some users monitor stderr and if we start emitting new warnings in v3, their alerts will go off. Can --camelCase remain to be allowed in b2v3?

mjurbanski-reef commented 6 months ago

@ppolewicz we already made this decision to emit deprecation warnings to stderr when we deprecated multiple popular commands like download-file-by-name in version https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.14.0 . In 3 months since this change, we have not received a single complaint.

The motivation to do it this way, was to "ease" people into new version. IF we ever receive such complaints we may introduce an ENV var silencing deprecation warnings, but still show them by default.