1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 11:35:00 -05:00
pacman/scripts
Dave Reisner f61f075b1c pacman-key: adopt parseopts for option parsing
This requires an ugly amount of reworking of how pacman-key handles
options. The change simply to avoid passing keys, files, and directories
as arguments to options, but to leave them as arguments to the overall
program. This is reasonable since pacman-key limits the user to
essentially one operation per invocation (like pacman).

Since we now pass around the positional parameters to the various
operations, we can add some better sanity checking. Each operation is
responsible for testing input and making sure it can operate properly,
otherwise it throws an error and exits.

The doc is updated to reflect this, and uses similar verbiage as pacman,
describing the non-option arguments now passed to pacman-key as targets.

Similar to the doc, --help is reorganized to separate operations and
options and remove argument tokens from operations.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-24 08:38:36 -05:00
..
library scripts/library: introduce parseopts 2012-04-24 08:38:36 -05:00
po scripts/library: introduce parseopts 2012-04-24 08:38:36 -05:00
.gitignore Move some .gitignore entries 2011-07-18 10:28:19 -05:00
Makefile.am pacman-key: adopt parseopts for option parsing 2012-04-24 08:38:36 -05:00
makepkg.sh.in makepkg: allow specifying --pkg multiple times 2012-04-24 08:38:36 -05:00
pacman-db-upgrade.sh.in Merge branch 'maint' 2012-01-30 22:00:26 -06:00
pacman-key.sh.in pacman-key: adopt parseopts for option parsing 2012-04-24 08:38:36 -05:00
pacman-optimize.sh.in pacman-optimize: standardize on openssl usage, only touch local/ 2012-03-08 17:26:23 -06:00
pkgdelta.sh.in Merge branch 'maint' 2012-04-07 11:23:55 -05:00
rankmirrors.sh.in rankmirrors: properly sort resulting times 2011-09-06 08:44:34 -05:00
repo-add.sh.in repo-remove: remove deltas file if it becomes empty 2012-04-07 11:30:56 -05:00