#include "system.h"
#include "closeout.h"
#include "error.h"
-#include "long-options.h"
#include "lchown.h"
#include "savedir.h"
+#include "version-etc.h"
+
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "chown"
#ifndef _POSIX_VERSION
struct passwd *getpwnam ();
{"silent", no_argument, 0, 'f'},
{"reference", required_argument, 0, CHAR_MAX + 1},
{"verbose", no_argument, 0, 'v'},
+ {GETOPT_HELP_OPTION_DECL},
+ {GETOPT_VERSION_OPTION_DECL},
{0, 0, 0, 0}
};
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "chown", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
-
recurse = force_silent = 0;
while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, NULL)) != -1)
case 'v':
verbosity = V_high;
break;
+ case_GETOPT_HELP_CHAR;
+ case_GETOPT_VERSION_CHAR (PROGRAM_NAME, "David MacKenzie");
default:
usage (1);
}