Skip to content

Conversation

@TerakomariGandesblood
Copy link
Contributor

@TerakomariGandesblood TerakomariGandesblood commented Mar 18, 2025

I noticed that the base64 that comes with macOS includes a -D flag.

Usage: base64 [-Ddh] [-b num] [-i in_file] [-o out_file]
-b, --break break encoded output up into lines of length num
-D, -d, --decode decode input
-h, --help display this message
-i, --input input file (default: "-" for stdin)
-o, --output output file (default: "-" for stdout)

Implementing this flag makes it easy to replace the system default implementation with coreutils on macOS, as there are programs that rely on this flag (e.g. imgcat).

@sylvestre
Copy link
Contributor

please don't share screenshot, they are terrible for accessibility and search

also please add a test to make sure we don't regress
And document this change in:
https://github.com/uutils/coreutils/blob/main/docs/src/extensions.md

Co-authored-by: Sylvestre Ledru <[email protected]>
@cakebaker cakebaker merged commit ae6d4de into uutils:main Mar 18, 2025
67 checks passed
@cakebaker
Copy link
Contributor

Thanks for your PR!

sylvestre added a commit to sylvestre/coreutils that referenced this pull request Mar 23, 2025
* base32/base64/basenc: add -D flag

* base32/base64/basenc: add test for -D flag

* update extensions.md

* remove redundant parameters

* merge  into a single category

* Update docs/src/extensions.md

Co-authored-by: Sylvestre Ledru <[email protected]>

---------

Co-authored-by: Sylvestre Ledru <[email protected]>
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