mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
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) {
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
Verbose++;
|
||||
break;
|
||||
|
||||
case 'p':
|
||||
|
@ -60,7 +60,7 @@ main(int argc, char **argv)
|
||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
Verbose++;
|
||||
break;
|
||||
|
||||
case 'x':
|
||||
|
@ -52,7 +52,7 @@ main(int argc, char **argv)
|
||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
Verbose++;
|
||||
break;
|
||||
|
||||
case 'f':
|
||||
|
@ -69,7 +69,7 @@ main(int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
Verbose++;
|
||||
/* Reasonable definition of 'everything' */
|
||||
Flags = SHOW_COMMENT | SHOW_DESC | SHOW_PLIST | SHOW_INSTALL |
|
||||
SHOW_DEINSTALL | SHOW_REQUIRE | SHOW_DISPLAY | SHOW_MTREE;
|
||||
|
@ -26,7 +26,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
/* These are global for all utils */
|
||||
Boolean Quiet = FALSE;
|
||||
Boolean Verbose = FALSE;
|
||||
Boolean Fake = FALSE;
|
||||
Boolean Force = FALSE;
|
||||
int AutoAnswer = FALSE;
|
||||
int Verbose = 0; /* Allow multiple levels of verbose. */
|
||||
|
@ -230,9 +230,9 @@ int version_cmp(const char *, const char *);
|
||||
|
||||
/* Externs */
|
||||
extern Boolean Quiet;
|
||||
extern Boolean Verbose;
|
||||
extern Boolean Fake;
|
||||
extern Boolean Force;
|
||||
extern int AutoAnswer;
|
||||
extern int Verbose;
|
||||
|
||||
#endif /* _INST_LIB_LIB_H_ */
|
||||
|
@ -54,7 +54,7 @@ main(int argc, char **argv)
|
||||
else while ((ch = getopt(argc, argv, Options)) != -1) {
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
Verbose++;
|
||||
break;
|
||||
|
||||
case 'I':
|
||||
|
Loading…
Reference in New Issue
Block a user