From ceaf47d002980b5462313461987eb861adb7c8d6 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Tue, 5 Apr 1994 14:05:40 +0000 Subject: [PATCH] Add -N and -Y flags for auto-answer feature. --- usr.sbin/pkg_install/create/main.c | 10 +++++++++- usr.sbin/pkg_install/create/pkg_create.1 | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index 0e18187c3522..8c4bc819f75f 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 34a548b44ff9..3d29b52efa8f 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."