aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/slapt-get.820
-rw-r--r--src/main.c7
2 files changed, 20 insertions, 7 deletions
diff --git a/doc/slapt-get.8 b/doc/slapt-get.8
index b8350b0..50ed866 100644
--- a/doc/slapt-get.8
+++ b/doc/slapt-get.8
@@ -68,7 +68,7 @@ slapt-get \- frontend to pkgtools
.LP
.B targets:
[
-.B --update
+.B --update|-u
]
[
.B --upgrade
@@ -77,7 +77,7 @@ slapt-get \- frontend to pkgtools
.B --dist-upgrade
]
[
-.B --install
+.B --install|-i
]
[
.B --install-set
@@ -89,6 +89,9 @@ slapt-get \- frontend to pkgtools
.B --show
]
[
+.B --filelist
+]
+[
.B --search
]
[
@@ -110,6 +113,9 @@ slapt-get \- frontend to pkgtools
.B --add-keys
]
[
+.B --help|-h
+]
+[
.B --version
]
.SH DESCRIPTION
@@ -169,7 +175,7 @@ Specify the number of retries to attempt if the package download fails.
Install the package rather than attempting to detect if a previous version is installed and upgrading it. This is useful for installing kernel packages. This option is only valid for --install targets.
.SH TARGETS
.TP
-.B --update
+.B --update|-u
Retrieves package data from MIRROR location.
.TP
.B --upgrade
@@ -187,9 +193,12 @@ Install specified disk set(s). example: --install-set xap n l
.B --remove [package(s)]
Remove specified package(s). Packages can be package names or package names with version (example: pkg-1.0-i386-1).
.TP
-.B --show [package]
+.B --show [package(s)]
Show package description. Package can be a package name or package name with version (example: pkg-1.0-i386-1).
.TP
+.B --filelist [package(s)]
+Show package installed files. Package can be a package name or package name with version (example: pkg-1.0-i386-1).
+.TP
.B --search [expression]
Search available packages. Applies POSIX and extended regular expression
to the names, versions, locations, and descriptions of packages.
@@ -212,6 +221,9 @@ Like clean, autoclean clears out the local repository of retrieved package file
.B --add-keys
Check each package source for a GPG-KEY file. Download and import into the local keychain.
.TP
+.B --help|-h
+Display this help and exit.
+.TP
.B --version
Print version and license info.
.SH NOTES
diff --git a/src/main.c b/src/main.c
index 6d9e562..d28be79 100644
--- a/src/main.c
+++ b/src/main.c
@@ -172,7 +172,7 @@ int main( int argc, char *argv[] )
usage();
slapt_free_rc_config(initial_config);
curl_global_cleanup();
- exit(EXIT_FAILURE);
+ exit(EXIT_SUCCESS);
case SLAPT_IGNORE_DEP_OPT: /* ignore-dep */
initial_config->ignore_dep = SLAPT_TRUE;
break;
@@ -443,8 +443,8 @@ void usage(void)
printf(" --install|-i %s\n",gettext("[pkg name(s)] - install specified pkg(s)"));
printf(" --install-set %s\n",gettext("[disk set(s)] - install specified disk set(s)"));
printf(" --remove %s\n",gettext("[pkg name(s)] - remove specified pkg(s)"));
- printf(" --show %s\n",gettext("[pkg name] - show pkg description"));
- printf(" --filelist %s\n",gettext("[pkg name] - show pkg installed files"));
+ printf(" --show %s\n",gettext("[pkg name(s)] - show pkg description"));
+ printf(" --filelist %s\n",gettext("[pkg name(s)] - show pkg installed files"));
printf(" --search %s\n",gettext("[expression] - search available pkgs"));
printf(" --list - %s\n",gettext("list pkgs"));
printf(" --available - %s\n",gettext("list available pkgs"));
@@ -454,6 +454,7 @@ void usage(void)
#ifdef SLAPT_HAS_GPGME
printf(" --add-keys - %s\n",gettext("retrieve GPG keys for sources"));
#endif
+ printf(" --help|-h - %s\n",gettext("display this help and exit"));
printf(" --version - %s\n",gettext("print version and license info"));
printf("\n");
printf(gettext("Options:\n"));