Skip to contentSkip to conversation

cmd: demo: Remove duplicated help message for list subcommand

PATCH New Michal Simek 3 participants 3 messages Aug 13, 2020 – Aug 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: demo: Remove duplicated help message for list subcommand

There is no need to show demo list description twice when help demo is performed. The patch removes duplicated entry.

Current state:
=> help demo
demo - Driver model (dm) demo operations

Usage:

demo list                     List available demo devices
demo hello <num> [<char>]     Say hello
demo light [<num>]            Set or get the lights
demo status <num>             Get demo device status
demo list                     List available demo devices
Fixes a02af4aeece4 ("dm: demo: Add a simple GPIO demonstration")

---

 cmd/demo.c | 1 -
 1 file changed, 1 deletion(-)
cmd/demo.c +0 -1
index f923533f794b..7310aa2907ad 100644
@@ -130,5 +130,4 @@ U_BOOT_CMD(
 	"demo hello <num> [<char>]     Say hello\n"
 	"demo light [<num>]            Set or get the lights\n"
 	"demo status <num>             Get demo device status\n"
-	"demo list                     List available demo devices"
 );
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 cmd: demo: Remove duplicated help message for list subcommand

Quoted 15 lines · Michal Simek

There is no need to show demo list description twice when help demo is performed. The patch removes duplicated entry.

Current state:
=> help demo
demo - Driver model (dm) demo operations

Usage:

demo list                     List available demo devices
demo hello <num> [<char>]     Say hello
demo light [<num>]            Set or get the lights
demo status <num>             Get demo device status
demo list                     List available demo devices
Quoted 6 lines
Fixes a02af4aeece4 ("dm: demo: Add a simple GPIO demonstration")

---

 cmd/demo.c | 1 -
 1 file changed, 1 deletion(-)
#2 lore raw

PATCH 1/1 cmd: demo: Remove duplicated help message for list subcommand

In reply to Michal Simek
Quoted 14 lines · Michal Simek

There is no need to show demo list description twice when help demo is performed. The patch removes duplicated entry.

Current state:
=> help demo
demo - Driver model (dm) demo operations

Usage:

demo list                     List available demo devices
demo hello <num> [<char>]     Say hello
demo light [<num>]            Set or get the lights
demo status <num>             Get demo device status
demo list                     List available demo devices
Quoted 3 lines
Fixes a02af4aeece4 ("dm: demo: Add a simple GPIO demonstration")

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200814/925a530a/attachment.sig>