--- powerpc-utils-1.2.2/man/~ofpathname.8 2010-03-30 02:18:13.000000000 -0500 +++ powerpc-utils-1.2.2/man/ofpathname.8 2010-03-30 02:23:54.000000000 -0500 @@ -6,21 +6,27 @@ .SH NAME ofpathname \- translate between Open Firmware and logical device names .SH SYNOPSIS -\fB/usr/sbin/ofpathname \fR[\fB-lq\fR] \fIname +\fB/usr/sbin/ofpathname \fR[\fB-laqVh\fR] \fIname .SH DESCRIPTION .I Ofpathname provides the ability to translate logical device names to their Open Firmware -device path names for PoowerPC-64 systems. It can also translate an Open +device path names for PowerPC-64 systems. It can also translate an Open Firmware device path to its logical device name using the -l option. .SH OPTIONS .TP \fB\-l Translate the \fIname \fRparameter to the corresponding logical device name. .TP +\fB\-a +Find matching Open Firmware device alias[es]. +.TP \fB\--quiet \fR(\fB\-q\fR) Do not report any failures, exit quietly. .TP -\fB\--help \fR(\fB\-?\fR) +\fB\--version \fR(\fB\-V\fR) +Display version information and exit. +.TP +\fB\--help \fR(\fB\-h\fR) print usage information. .SH AUTHOR Written by Nathan Fontenot diff --git a/src/nvram.c b/src/nvram.c index 70f0f9b..5c23b5e 100644 --- a/src/nvram.c +++ b/src/nvram.c @@ -1491,7 +1491,7 @@ main (int argc, char *argv[]) for (;;) { option_index = 0; - ret = getopt_long(argc, argv, "+v:p:", long_options, &option_index); + ret = getopt_long(argc, argv, "+p:v", long_options, &option_index); if (ret == -1) break; switch (ret) {