]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pkg(7): rework the arguments handling
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 6 Jan 2021 10:35:22 +0000 (11:35 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 5 May 2021 08:16:47 +0000 (10:16 +0200)
commit0543e10e950dd5c8b17cdb7cf60b9f95aece094a
treec16bb79e8fdf4ce35117f4798af4c1511a452803
parentfb8d0baa3acd6d0e639dcabaa2039cd0100b5dbb
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
Submitted by: evilham <contact@evilham.com>
Differential Revision: https://reviews.freebsd.org/D27860

(cherry picked from commit ae994fdc5bd2ccc0ac0b8745fd1f1be67ad6e071)
usr.sbin/pkg/pkg.7
usr.sbin/pkg/pkg.c