1
0
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:
Dan McGee 2007-03-28 11:20:18 -04:00
parent 4a0aac3862
commit 3ef1aeb8bd

View File

@ -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);