From c2386b82943e6f664ccb44b8c818b50357af78d4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 8 Mar 2011 03:15:56 +0000 Subject: [PATCH] clarify/unify help text output for signal/dr commmands git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1898 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 2 ++ urjtag/src/cmd/cmd_dr.c | 16 ++++++++-------- urjtag/src/cmd/cmd_signal.c | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 42bfa1db..e3f0ccc8 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -9,6 +9,8 @@ parts that default to IDCODE or BYPASS since both are acceptable to the JTAG IEEE standard. + * src/cmd/cmd_dr.c, src/cmd/cmd_signal.c: Touch up help text a bit more. + 2011-02-24 Mike Frysinger * src/tap/cable/ft2232.c: Rename user-facing cable string from diff --git a/urjtag/src/cmd/cmd_dr.c b/urjtag/src/cmd/cmd_dr.c index 9e6cb435..5dd92e41 100644 --- a/urjtag/src/cmd/cmd_dr.c +++ b/urjtag/src/cmd/cmd_dr.c @@ -108,16 +108,16 @@ static void cmd_dr_help (void) { urj_log (URJ_LOG_LEVEL_NORMAL, - _("Usage: %s [DIR]\n" - "Usage: %s BITSTRING\n" - "Usage: %s HEXSTRING\n" + _("Usage: %1$s [DIR]\n" + "Usage: %1$s BITSTRING\n" + "Usage: %1$s HEXSTRING\n" "Display input or output data register content or set current register.\n" "\n" - "DIR requested data register; possible values: 'in' for\n" - " input and 'out' for output; default is 'out'\n" - "BITSTRING set current data register with BITSTRING (e.g. 01010)\n" - "HEXSTRING set current data register with HEXSTRING (e.g. 0x123)\n"), - "dr", "dr", "dr"); + "DIR requested data register; possible values: 'in' for\n" + " input and 'out' for output; default is 'out'\n" + "BITSTRING set current data register with BITSTRING (e.g. 01010)\n" + "HEXSTRING set current data register with HEXSTRING (e.g. 0x123)\n"), + "dr"); } const urj_cmd_t urj_cmd_dr = { diff --git a/urjtag/src/cmd/cmd_signal.c b/urjtag/src/cmd/cmd_signal.c index c84c9ef1..d1b59888 100644 --- a/urjtag/src/cmd/cmd_signal.c +++ b/urjtag/src/cmd/cmd_signal.c @@ -97,7 +97,7 @@ cmd_signal_help (void) "Define new signal with name SIGNAL for a part.\n" "\n" "SIGNAL New signal name\n" - "PIN# List of pin # for a signal\n"), + "PIN# List of pin # for a signal\n"), "signal"); }