summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-04-05 14:05:40 +0000
committerjkh <jkh@FreeBSD.org>1994-04-05 14:05:40 +0000
commit4549480f2f521e96c7310bbfa8d999677c0dbf9b (patch)
tree9e27253066fef136dcfd3646952851239e391d03 /usr.sbin/pkg_install
parenta44d417a90c214d29580272bdf8775fabe540c93 (diff)
downloadFreeBSD-src-4549480f2f521e96c7310bbfa8d999677c0dbf9b.zip
FreeBSD-src-4549480f2f521e96c7310bbfa8d999677c0dbf9b.tar.gz
Add -N and -Y flags for auto-answer feature.
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/create/main.c10
-rw-r--r--usr.sbin/pkg_install/create/pkg_create.18
2 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c
index 0e18187..8c4bc81 100644
--- a/usr.sbin/pkg_install/create/main.c
+++ b/usr.sbin/pkg_install/create/main.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: main.c,v 1.4 1993/09/04 05:06:33 jkh Exp $";
+static const char *rcsid = "$Id: main.c,v 1.4 1993/09/12 20:45:29 jkh Exp $";
#endif
/*
@@ -42,6 +42,14 @@ main(int argc, char **argv)
Verbose = TRUE;
break;
+ case 'N':
+ AutoAnswer = NO;
+ break;
+
+ case 'Y':
+ AutoAnswer = YES;
+ break;
+
case 'p':
Prefix = optarg;
break;
diff --git a/usr.sbin/pkg_install/create/pkg_create.1 b/usr.sbin/pkg_install/create/pkg_create.1
index 34a548b..3d29b52 100644
--- a/usr.sbin/pkg_install/create/pkg_create.1
+++ b/usr.sbin/pkg_install/create/pkg_create.1
@@ -41,6 +41,14 @@ description of the input syntax is included in this document.
.TP
The following command line options are supported.
.TP
+.B \-Y
+Assume a default answer of `Yes' for any questions asked.
+.B "Optional."
+.TP
+.B \-N
+Assume a default answer of `No' for any questions asked.
+.B "Optional."
+.TP
.B \-v
Turns on verbose output.
.B "Optional."
OpenPOWER on IntegriCloud