From ceec6449a43bb12d50d810df0295927597f6bb56 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 12 May 2013 01:59:37 -0500 Subject: [PATCH] imagex.c: Recommend man page when running wimlib-imagex update interactively --- programs/imagex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/imagex.c b/programs/imagex.c index 42ba17fa..ae8cd0f4 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -185,11 +185,11 @@ static void recommend_man_page(const tchar *cmd_name) { #ifdef __WIN32__ - tprintf(T("\nSee "IMAGEX_PROGNAME"-%"TS".pdf in the " + tprintf(T("See "IMAGEX_PROGNAME"-%"TS".pdf in the " "doc directory for more details.\n"), cmd_name); #else - tprintf(T("\nTry `man "IMAGEX_PROGNAME"-%"TS"' " + tprintf(T("Try `man "IMAGEX_PROGNAME"-%"TS"' " "for more details.\n"), cmd_name); #endif } @@ -3005,6 +3005,7 @@ imagex_update(int argc, tchar **argv) /* Read update commands from standard input */ if (isatty(STDIN_FILENO)) { tputs(T("Reading update commands from standard input...")); + recommend_man_page(T("update")); } cmd_file_contents = stdin_get_text_contents(&cmd_file_nchars); if (!cmd_file_contents) { @@ -3149,6 +3150,7 @@ usage(int cmd_type) tprintf(T("Usage:\n%"TS), usage_strings[cmd_type]); for_imagex_command(cmd) { if (cmd->cmd == cmd_type) { + tputc(T('\n'), stdout); recommend_man_page(cmd->name); } } -- 2.43.0