Skip to contentSkip to conversation

hmp: Add shortcut to stop command to match cont

PATCH Applied BALATON Zoltan 3 participants 4 messages Oct 30, 2021 – Nov 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 hmp: Add shortcut to stop command to match cont

Some commands such as quit or cont have one letter alternatives but stop is missing that. Add stop|s to match cont|c for consistency and convenience.

---
c2: Fixed typo in commit title

 hmp-commands.hx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hmp-commands.hx +2 -2
index cf723c69ac..07a738a8e2 100644
@@ -382,7 +382,7 @@ SRST
 ERST
 
     {
-        .name       = "stop",
+        .name       = "stop|s",
         .args_type  = "",
         .params     = "",
         .help       = "stop emulation",
@@ -390,7 +390,7 @@ ERST
     },
 
 SRST
-``stop``
+``stop`` or ``s``
   Stop emulation.
 ERST
 
Signature · 1 line
2.21.4
#1 lore raw

Ping? This is really simple addition that sholdn't take long to review.

Quoted 34 lines · BALATON Zoltan

Some commands such as quit or cont have one letter alternatives but stop is missing that. Add stop|s to match cont|c for consistency and convenience.

---
c2: Fixed typo in commit title

hmp-commands.hx | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
hmp-commands.hx +0 -0
index cf723c69ac..07a738a8e2 100644
@@ -382,7 +382,7 @@ SRST

ERST

    {
hmp-commands.hx +1 -1
-        .name       = "stop",
+        .name       = "stop|s",
        .args_type  = "",
        .params     = "",
        .help       = "stop emulation",
@@ -390,7 +390,7 @@ ERST
    },
 

SRST
-``stop``
+``stop`` or ``s``
Stop emulation.
ERST

Reviewed-by on v2 1/1
#3 lore raw
In reply to BALATON Zoltan
Quoted 10 lines · BALATON Zoltan

Some commands such as quit or cont have one letter alternatives but stop is missing that. Add stop|s to match cont|c for consistency and convenience.

---
c2: Fixed typo in commit title

 hmp-commands.hx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
In reply to BALATON Zoltan

Le 01/11/2021 à 23:56, BALATON Zoltan a écrit :

Quoted 30 lines

Ping? This is really simple addition that sholdn't take long to review.

Quoted 27 lines · BALATON Zoltan

Some commands such as quit or cont have one letter alternatives but stop is missing that. Add stop|s to match cont|c for consistency and convenience.

---
c2: Fixed typo in commit title

hmp-commands.hx | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
hmp-commands.hx +0 -0
index cf723c69ac..07a738a8e2 100644
@@ -382,7 +382,7 @@ SRST

ERST

    {
-        .name       = "stop",
+        .name       = "stop|s",
        .args_type  = "",
        .params     = "",
        .help       = "stop emulation",

hmp-commands.hx +0 -0
@@ -390,7 +390,7 @@ ERST
     },
 
Quoted 8 lines
Quoted 7 lines

SRST
-``stop``
+``stop`` or ``s``
  Stop emulation.
ERST

Applied to my trivial-patches branch.

I'll do a new PR before the hard freeze.

Thanks,
Laurent