Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-08-15 12:58:54 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-08-15 12:58:54 +0400
commitdae37d5d84858fbfe4a2bf7c02ebf1e0a9210225 (patch)
tree1a41394e9c5afcf16d89a7a5332bf3b51e8f2fbd /winsup/utils/regtool.cc
parentb98580a7169f81eb5d3559233251efae1cd213ee (diff)
* regtool.cc (usage): Add missing linefeed. Move example to --help
text. Fix forward slash description.
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r--winsup/utils/regtool.cc32
1 files changed, 17 insertions, 15 deletions
diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc
index 2a94c98c0..5f2396cd9 100644
--- a/winsup/utils/regtool.cc
+++ b/winsup/utils/regtool.cc
@@ -99,22 +99,24 @@ usage (FILE *where = stderr)
" -V, --version output version information and exit\n"
"\n");
if (where == stdout)
- fprintf (where, ""
- "KEY is in the format [host]\\prefix\\KEY\\KEY\\VALUE, where host is optional\n"
- "remote host in either \\\\hostname or hostname: format and prefix is any of:\n"
- " root HKCR HKEY_CLASSES_ROOT (local only)\n"
- " config HKCC HKEY_CURRENT_CONFIG (local only)\n"
- " user HKCU HKEY_CURRENT_USER (local only)\n"
- " machine HKLM HKEY_LOCAL_MACHINE\n"
- " users HKU HKEY_USERS\n"
- "\n"
- "You can use forward slash ('/') as a separator instead of backslash, in\n"
- "that case backslash is treated as escape character\n"
- "");
- fprintf (where, ""
- "Example: %s get '\\user\\software\\Microsoft\\Clock\\iFormat'\n", prog_name);
+ {
+ fprintf (where, ""
+ "KEY is in the format [host]\\prefix\\KEY\\KEY\\VALUE, where host is optional\n"
+ "remote host in either \\\\hostname or hostname: format and prefix is any of:\n"
+ " root HKCR HKEY_CLASSES_ROOT (local only)\n"
+ " config HKCC HKEY_CURRENT_CONFIG (local only)\n"
+ " user HKCU HKEY_CURRENT_USER (local only)\n"
+ " machine HKLM HKEY_LOCAL_MACHINE\n"
+ " users HKU HKEY_USERS\n"
+ "\n"
+ "If the keyname starts with a forward slash ('/'), the forward slash is used\n"
+ "as separator and the backslash can be used as escape character.\n");
+ fprintf (where, ""
+ "Example:\n"
+ "%s list '/machine/SOFTWARE/Classes/MIME/Database/Content Type/audio\\/wav'\n", prog_name);
+ }
if (where == stderr)
- fprintf (where, "Try '%s --help' for more information.", prog_name);
+ fprintf (where, "Try '%s --help' for more information.\n", prog_name);
exit (where == stderr ? 1 : 0);
}