summaryrefslogtreecommitdiff
path: root/help-args.c
diff options
context:
space:
mode:
Diffstat (limited to 'help-args.c')
-rw-r--r--help-args.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/help-args.c b/help-args.c
index a74d213..ec1d13a 100644
--- a/help-args.c
+++ b/help-args.c
@@ -66,7 +66,7 @@ static char *cook_description(const char *description)
-void print_help_args_only(int args_only, int advanced)
+void print_help_args_only(int is_uninstall, int args_only, int advanced)
{
int i, j, len;
char *msg, *tmp, scratch[64];
@@ -93,6 +93,13 @@ void print_help_args_only(int args_only, int advanced)
/* Skip options with no help text */
if (!o->description) continue;
+ /* Skip options that do not apply to nvidia-uninstall if we're
+ * invoked as nvidia-uninstall. */
+ if (is_uninstall
+ && !(o->flags & NVGETOPT_OPTION_APPLIES_TO_NVIDIA_UNINSTALL)) {
+ continue;
+ }
+
if (o->flags & NVGETOPT_IS_BOOLEAN) {
msg = nvstrcat("--", o->name, "/--no-", o->name, NULL);
} else if (isalnum(o->val)) {