Document -D level command line flag which maps to the debug_level setting.

This commit is contained in:
Todd C. Miller
2010-02-24 07:48:53 -05:00
parent 9eb3e63c56
commit 07bf968c4d
8 changed files with 96 additions and 46 deletions

View File

@@ -188,8 +188,11 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv, char ***settingsp,
break;
#endif
case 'D':
if ((debug_level = atoi(optarg)) < 1 || debug_level > 9) {
warningx("the argument to -D must be between 1 and 9 inclusive");
usage(1);
}
sudo_settings.D.value = optarg;
debug_level = atoi(optarg);
break;
case 'E':
sudo_settings.c.value = "true";