mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Continue fixing usage instructions.
* Unify the main usage instructions to look a bit more like the rest with a usage and options line. * Fix some of the spacing from the de-gettexting done yesterday. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
4a0aac3862
commit
3ef1aeb8bd
@ -93,9 +93,11 @@ static void usage(int op, char *myname)
|
||||
char * const str_file = _("file");
|
||||
char * const str_pkg = _("package");
|
||||
char * const str_usg = _("usage");
|
||||
char * const str_opr = _("operation");
|
||||
|
||||
if(op == PM_OP_MAIN) {
|
||||
printf("%s:", str_usg);
|
||||
printf("%s: %s <%s> [...]\n", str_usg, myname, str_opr);
|
||||
printf("%s:\n", str_opt);
|
||||
printf(" %s {-h --help}\n", myname);
|
||||
printf(" %s {-V --version}\n", myname);
|
||||
printf(" %s {-A --add} [%s] <%s>\n", myname, str_opt, str_file);
|
||||
@ -112,7 +114,7 @@ static void usage(int op, char *myname)
|
||||
printf(_(" -d, --nodeps skip dependency checks\n"));
|
||||
printf(_(" -f, --force force install, overwrite conflicting files\n"));
|
||||
} else if(op == PM_OP_REMOVE) {
|
||||
printf("%s: %s {-R --remove} [%s] <%s>\n", str_usg, myname, str_opt, str_pkg);
|
||||
printf("%s: %s {-R --remove} [%s] <%s>\n", str_usg, myname, str_opt, str_pkg);
|
||||
printf(_("usage: %s {-R --remove} [options] <package>\n"), myname);
|
||||
printf("%s:\n", str_opt);
|
||||
printf(_(" -c, --cascade remove packages and all packages that depend on them\n"));
|
||||
@ -130,7 +132,7 @@ static void usage(int op, char *myname)
|
||||
printf(_(" -d, --nodeps skip dependency checks\n"));
|
||||
printf(_(" -f, --force force install, overwrite conflicting files\n"));
|
||||
} else if(op == PM_OP_QUERY) {
|
||||
printf("%s: %s {-Q --query} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
|
||||
printf("%s: %s {-Q --query} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
|
||||
printf("%s:\n", str_opt);
|
||||
printf(_(" -c, --changelog view the changelog of a package\n"));
|
||||
printf(_(" -e, --orphans list all packages installed as dependencies but no longer\n"
|
||||
@ -144,7 +146,7 @@ static void usage(int op, char *myname)
|
||||
printf(_(" -s, --search <regex> search locally-installed packages for matching strings\n"));
|
||||
printf(_(" -u, --upgrades list all packages that can be upgraded\n"));
|
||||
} else if(op == PM_OP_SYNC) {
|
||||
printf("%s: %s {-S --sync} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
|
||||
printf("%s: %s {-S --sync} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
|
||||
printf("%s:\n", str_opt);
|
||||
printf(_(" -c, --clean remove old packages from cache directory (-cc for all)\n"));
|
||||
printf(_(" -d, --nodeps skip dependency checks\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user