HomeFreeBSD

pkg(7): rework the arguments handling

Description

pkg(7): rework the arguments handling

Rework the arguments handling around using getopt_long:

  • add long option support
  • add -4 and -6 support to enforce ipv4 or ipv6

While here fix a regression which occured between FreeBSD 12.1 and
FreeBSD 12.2 where pkg bootstrap -y stopped working

PR: 252270
MFC after: 2 weeks
Submitted by: evilham <contact@evilham.com>
Differential Revision: https://reviews.freebsd.org/D27860

Details

Provenance
baptAuthored on Jan 6 2021, 10:35 AM
Differential Revision
D27860: Add -4 and -6 flags to pkg(7).
Parents
rG99870c70bac7: loader: rewrite vidc_install_font
Branches
Unknown
Tags
Unknown