Page MenuHomeFreeBSD

bintrans(1): qp switch to getopt_long
ClosedPublic

Authored by bapt on Jan 8 2025, 11:16 AM.
Tags
None
Referenced Files
F115917972: D48380.id148930.diff
Wed, Apr 30, 9:49 AM
F115892690: D48380.id148970.diff
Wed, Apr 30, 2:29 AM
Unknown Object (File)
Sun, Apr 20, 5:51 PM
Unknown Object (File)
Mar 25 2025, 10:16 PM
Unknown Object (File)
Mar 21 2025, 2:15 PM
Unknown Object (File)
Feb 22 2025, 2:26 PM
Unknown Object (File)
Feb 20 2025, 6:52 PM
Unknown Object (File)
Feb 16 2025, 6:17 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 Not Applicable
Unit
Tests Not Applicable

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.