9a4054f
From f41adcd85164ef8a0d0918f0508f29dcf3c7467d Mon Sep 17 00:00:00 2001
9a4054f
From: Robert Marshall <rmarshall@redhat.com>
9a4054f
Date: Tue, 26 Jan 2016 10:28:35 -0500
4a7cefb
Subject: [PATCH 81/90] Clean up grub-setpassword documentation (#1290799)
9a4054f
9a4054f
The output for --help had some errors. Corrected those and polished the
9a4054f
text to be a little easier to follow. Carried verbage over to man page
9a4054f
to maintain internal consistency.
9a4054f
9a4054f
Resolves: rhbz#1290799
9a4054f
---
9a4054f
 util/grub-setpassword.8  |  2 +-
9a4054f
 util/grub-setpassword.in | 15 +++++++--------
9a4054f
 2 files changed, 8 insertions(+), 9 deletions(-)
9a4054f
9a4054f
diff --git a/util/grub-setpassword.8 b/util/grub-setpassword.8
9a4054f
index 49200a8..dc91dd6 100644
9a4054f
--- a/util/grub-setpassword.8
9a4054f
+++ b/util/grub-setpassword.8
9a4054f
@@ -19,7 +19,7 @@ Display program usage and exit.
9a4054f
 -v, --version
9a4054f
 Display the current version.
9a4054f
 .TP
9a4054f
--o, --output[=\fIDIRECTORY PATH\fR]
9a4054f
+-o, --output=<\fIDIRECTORY\fR>
9a4054f
 Choose the file path to which user.cfg will be written.
9a4054f
 
9a4054f
 .SH SEE ALSO
9a4054f
diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in
9a4054f
index dd7b793..d7924af 100644
9a4054f
--- a/util/grub-setpassword.in
9a4054f
+++ b/util/grub-setpassword.in
9a4054f
@@ -16,15 +16,14 @@ grub_mkpasswd="${bindir}/@grub_mkpasswd_pbkdf2@"
9a4054f
 # Print the usage.
9a4054f
 usage () {
9a4054f
     cat <
9a4054f
-Usage: $0 [OPTION] [SOURCE]
9a4054f
-Run GRUB script in a Qemu instance.
9a4054f
-
9a4054f
-  -h, --help              print this message and exit
9a4054f
-  -v, --version           print the version information and exit
9a4054f
-  -o, --output_path       choose a custom output path for user.cfg
9a4054f
-
9a4054f
+Usage: $0 [OPTION]
9a4054f
 $0 prompts the user to set a password on the grub bootloader. The password
9a4054f
-is written to a file named user.cfg.
9a4054f
+is written to a file named user.cfg which lives in the GRUB directory
9a4054f
+located by default at ${grubdir}.
9a4054f
+
9a4054f
+  -h, --help                     print this message and exit
9a4054f
+  -v, --version                  print the version information and exit
9a4054f
+  -o, --output_path <DIRECTORY>  put user.cfg in a user-selected directory
9a4054f
 
9a4054f
 Report bugs at https://bugzilla.redhat.com.
9a4054f
 EOF
9a4054f
-- 
4a7cefb
2.9.3
9a4054f