{
{"mode", required_argument, NULL, 'm'},
{"parents", no_argument, NULL, 'p'},
- {"verbose", no_argument, NULL, 2},
+ {"verbose", no_argument, NULL, 'v'},
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
{NULL, 0, NULL, 0}
\n\
-m, --mode=MODE set permission mode (as in chmod), not rwxrwxrwx - umask\n\
-p, --parents no error if existing, make parent directories as needed\n\
- --verbose print a message for each created directory\n\
+ -v, --verbose print a message for each created directory\n\
--help display this help and exit\n\
--version output version information and exit\n\
"));
create_parents = 0;
- while ((optc = getopt_long (argc, argv, "pm:", longopts, NULL)) != -1)
+ while ((optc = getopt_long (argc, argv, "pm:v", longopts, NULL)) != -1)
{
switch (optc)
{
case 'm':
symbolic_mode = optarg;
break;
- case 2: /* --verbose */
+ case 'v': /* --verbose */
verbose_fmt_string = _("created directory `%s'");
break;
case_GETOPT_HELP_CHAR;