Fix bad option handling for FreeBSD pkgng and pkg.install fromrepo
Fix option parsing and cmdline construction for pkgng install and fetch on FreeBSD
Fix lint errors.
Merge pull request #18924 from cro/pkgng_fromrepo

Fix bad option handling for FreeBSD pkgng.