Allow variable amounts of verbosity.
This commit is contained in:
parent
5c69ad8374
commit
3b26c608f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159554
@ -108,7 +108,7 @@ main(int argc, char **argv)
|
|||||||
while ((ch = getopt(argc, argv, Options)) != -1) {
|
while ((ch = getopt(argc, argv, Options)) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'v':
|
case 'v':
|
||||||
Verbose = TRUE;
|
Verbose++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
|
@ -60,7 +60,7 @@ main(int argc, char **argv)
|
|||||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'v':
|
case 'v':
|
||||||
Verbose = TRUE;
|
Verbose++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'x':
|
case 'x':
|
||||||
|
@ -52,7 +52,7 @@ main(int argc, char **argv)
|
|||||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'v':
|
case 'v':
|
||||||
Verbose = TRUE;
|
Verbose++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
|
@ -69,7 +69,7 @@ main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
Verbose = TRUE;
|
Verbose++;
|
||||||
/* Reasonable definition of 'everything' */
|
/* Reasonable definition of 'everything' */
|
||||||
Flags = SHOW_COMMENT | SHOW_DESC | SHOW_PLIST | SHOW_INSTALL |
|
Flags = SHOW_COMMENT | SHOW_DESC | SHOW_PLIST | SHOW_INSTALL |
|
||||||
SHOW_DEINSTALL | SHOW_REQUIRE | SHOW_DISPLAY | SHOW_MTREE;
|
SHOW_DEINSTALL | SHOW_REQUIRE | SHOW_DISPLAY | SHOW_MTREE;
|
||||||
|
@ -26,7 +26,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
/* These are global for all utils */
|
/* These are global for all utils */
|
||||||
Boolean Quiet = FALSE;
|
Boolean Quiet = FALSE;
|
||||||
Boolean Verbose = FALSE;
|
|
||||||
Boolean Fake = FALSE;
|
Boolean Fake = FALSE;
|
||||||
Boolean Force = FALSE;
|
Boolean Force = FALSE;
|
||||||
int AutoAnswer = FALSE;
|
int AutoAnswer = FALSE;
|
||||||
|
int Verbose = 0; /* Allow multiple levels of verbose. */
|
||||||
|
@ -230,9 +230,9 @@ int version_cmp(const char *, const char *);
|
|||||||
|
|
||||||
/* Externs */
|
/* Externs */
|
||||||
extern Boolean Quiet;
|
extern Boolean Quiet;
|
||||||
extern Boolean Verbose;
|
|
||||||
extern Boolean Fake;
|
extern Boolean Fake;
|
||||||
extern Boolean Force;
|
extern Boolean Force;
|
||||||
extern int AutoAnswer;
|
extern int AutoAnswer;
|
||||||
|
extern int Verbose;
|
||||||
|
|
||||||
#endif /* _INST_LIB_LIB_H_ */
|
#endif /* _INST_LIB_LIB_H_ */
|
||||||
|
@ -54,7 +54,7 @@ main(int argc, char **argv)
|
|||||||
else while ((ch = getopt(argc, argv, Options)) != -1) {
|
else while ((ch = getopt(argc, argv, Options)) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'v':
|
case 'v':
|
||||||
Verbose = TRUE;
|
Verbose++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'I':
|
case 'I':
|
||||||
|
Loading…
Reference in New Issue
Block a user