Page MenuHomeFreeBSD

bintrans(1): qp switch to getopt_long
ClosedPublic

Authored by bapt on Jan 8 2025, 11:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 7, 1:35 PM
Unknown Object (File)
Mon, Apr 6, 1:59 PM
Unknown Object (File)
Sun, Apr 5, 5:08 PM
Unknown Object (File)
Sun, Apr 5, 12:28 PM
Unknown Object (File)
Wed, Apr 1, 6:13 AM
Unknown Object (File)
Wed, Mar 25, 12:15 AM
Unknown Object (File)
Mon, Mar 23, 3:52 AM
Unknown Object (File)
Mon, Mar 23, 1:02 AM
Subscribers

Details

Summary

In preparation for more arguments, switch bintrans qp argument parsing
to getopt_long, while here make the decodign argument being -d|--decode
for compatibility with base64 encoding/decoding

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61574
Build 58458: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Jan 8 2025, 11:16 AM

When I imported mmencode, its usage was already established to be mmencode [-u] [-q] [-b] [-p] [-o outputfile] [file name] and has been for probably decades.
I have no opinion on what it should be, just giving historical context here.

This revision is now accepted and ready to land.Jan 8 2025, 4:13 PM
This revision was automatically updated to reflect the committed changes.