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)
Fri, Aug 28, 9:03 PM
Unknown Object (File)
Thu, Aug 27, 9:25 AM
Unknown Object (File)
Wed, Aug 26, 2:21 PM
Unknown Object (File)
Tue, Aug 25, 5:48 PM
Unknown Object (File)
Thu, Aug 13, 12:13 AM
Unknown Object (File)
Mon, Aug 10, 11:41 AM
Unknown Object (File)
Sat, Aug 8, 4:50 PM
Unknown Object (File)
Sat, Aug 8, 4:48 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.