Page MenuHomeFreeBSD

bintrans(1): qp switch to getopt_long
ClosedPublic

Authored by bapt on Jan 8 2025, 11:16 AM.
Tags
None
Referenced Files
F163444018: D48380.id.diff
Thu, Jul 23, 6:28 AM
Unknown Object (File)
Wed, Jul 22, 12:23 PM
Unknown Object (File)
Tue, Jul 21, 12:07 AM
Unknown Object (File)
Wed, Jul 8, 8:33 PM
Unknown Object (File)
Jun 21 2026, 10:45 PM
Unknown Object (File)
Jun 1 2026, 8:07 PM
Unknown Object (File)
May 27 2026, 10:21 PM
Unknown Object (File)
May 26 2026, 5:06 PM
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.