.B install (in) [name] ...
Install resolvables.
.TP
-\fI\-c, -\-catalog\fR
-Only from this catalog (FIXME)
+\fI\-c, \-\-catalog\fR
+Only from this catalog (FIXME not implemented yet)
.TP
-\fI\-t, -\-type\fR [resolvable]
+\fI\-t, \-\-type\fR [resolvable]
Type of resolvable (default: package)
+.TP
+.I \-y, \-\-no-confirm
+Don't require user confirmation.
.TP
.B list-updates (lu)
.TP
\fI\-t, -\-type\fR [resolvable]
Type of resolvable (default: package)
+.TP
+.I \-y, \-\-no-confirm
+Don't require user confirmation.
.TP
.B update (up)
Update resolvables.
.TP
-\fI\-t, --type\fR
+\fI\-t, -\-type\fR [resolvable]
Type of resolvable (default: patch)
+.TP
+.I \-y, \-\-no-confirm
+Don't require user confirmation.
.TP
\fBsearch\fR (\fBse\fR) [\fIoptions\fR] [\fBquerystring\fR] ...
.I \-u, \-\-uninstalled\-only
Show only resolvables that are not currently installed.
.TP
-.I \-t, \-\-type
+\fI\-t, -\-type\fR [resolvable]
Search only for resolvables of specified type.
.TP
.I \-c, \-\-catalog
if (command == "install" || command == "in") {
static struct option install_options[] = {
- {"catalog", required_argument, 0, 'c'},
- {"type", required_argument, 0, 't'},
+ {"catalog", required_argument, 0, 'c'},
+ {"type", required_argument, 0, 't'},
+ {"no-confirm", no_argument, 0, 'y'},
{0, 0, 0, 0}
};
specific_options = install_options;
specific_help = " Command options:\n"
"\t--catalog,-c\t\tOnly from this catalog (FIXME)\n"
"\t--type,-t\t\tType of resolvable (default: package)\n"
+ "\t--no-confirm,-y\tDon't require user confirmation\n"
;
}
else if (command == "remove" || command == "rm") {
static struct option remove_options[] = {
- {"type", required_argument, 0, 't'},
+ {"type", required_argument, 0, 't'},
+ {"no-confirm", no_argument, 0, 'y'},
{0, 0, 0, 0}
};
specific_options = remove_options;
specific_help = " Command options:\n"
"\t--type,-t\t\tType of resolvable (default: package)\n"
+ "\t--no-confirm,-y\tDon't require user confirmation\n"
;
}
else if (command == "service-add" || command == "sa") {
}
else if (command == "update" || command == "up") {
static struct option remove_options[] = {
- {"type", required_argument, 0, 't'},
+ {"type", required_argument, 0, 't'},
+ {"no-confirm", no_argument, 0, 'y'},
{0, 0, 0, 0}
};
specific_options = remove_options;
specific_help = " Command options:\n"
"\t--type,-t\t\tType of resolvable (default: patch)\n"
+ "\t--no-confirm,-y\tDon't require user confirmation\n"
;
}
else if (command == "search" || command == "se") {
mark_for_uninstall(kind, *it);
}
- solve_and_commit ();
+ solve_and_commit (copts.count("no-confirm"));
}
return 0;
}
establish ();
mark_updates (kind);
- solve_and_commit ();
+ solve_and_commit (copts.count("no-confirm"));
return 0;
}