Skip to contentSkip to conversation

kvm tools: remove unused options

PATCH In review Liming Wang 4 participants 9 messages Aug 9, 2011 – Aug 10, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 kvm tools: remove unused options

From: walimis <[email protected]>

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

---
 tools/kvm/builtin-help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/builtin-help.c +1 -1
index e89cd5c..e70044a 100644
@@ -10,7 +10,7 @@
 
 
 const char kvm_usage_string[] =
-	"kvm [--version] [--help] COMMAND [ARGS]";
+	"kvm COMMAND [ARGS]";
 
 const char kvm_more_info_string[] =
 	"See 'kvm help COMMAND' for more information on a specific command.";
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 kvm tools: Fix wrong help message for kvm pause

From: walimis <[email protected]>

replace debug with pause for kvm pause.

---
 tools/kvm/builtin-pause.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/builtin-pause.c +1 -1
index 0c0010d..827b3b4 100644
@@ -17,7 +17,7 @@ int kvm_cmd_pause(int argc, const char **argv, const char *prefix)
 	int pid;
 
 	if (argc != 1)
-		die("Usage: kvm debug [instance name]\n");
+		die("Usage: kvm pause [instance name]\n");
 
 	if (strcmp(argv[0], "all") == 0) {
 		kvm__enumerate_instances(do_pause);
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 2/2] kvm tools: Fix wrong help message for kvm pause

Quoted 14 lines · Liming Wang

From: walimis <[email protected]>

replace debug with pause for kvm pause.

---
tools/kvm/builtin-pause.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/builtin-pause.c +0 -0
index 0c0010d..827b3b4 100644

tools/kvm/builtin-pause.c int kvm_cmd_pause(int argc, const char **argv, const char *prefix) · line 23

Quoted 8 lines
tools/kvm/builtin-pause.c +1 -1
@@ -17,7 +17,7 @@ int kvm_cmd_pause(int argc, const char **argv, const char *prefix)
 	int pid;
 
 	if (argc != 1)
-		die("Usage: kvm debug [instance name]\n");
+		die("Usage: kvm pause [instance name]\n");
 
 	if (strcmp(argv[0], "all") == 0) {
 		kvm__enumerate_instances(do_pause);

This was already fixed by an earlier patch from Sasha that I just merged to master. Thanks for the patch though!

#3 lore raw
In reply to Liming Wang
Quoted 6 lines · Liming Wang

From: walimis <[email protected]>

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

The patch looks good but unfortunately I have to ask you to resend with proper Signed-off-by tag. I was about to fix it myself but noticed that you're sending patches from windriver.com but the signoff is for gmail.com.

I suppose you've simply forgotten to run git config user.name?

Pekka

Quoted 21 lines

---
tools/kvm/builtin-help.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/builtin-help.c +0 -0
index e89cd5c..e70044a 100644
@@ -10,7 +10,7 @@
 
 

const char kvm_usage_string[] =

tools/kvm/builtin-help.c +1 -1
-	"kvm [--version] [--help] COMMAND [ARGS]";
+	"kvm COMMAND [ARGS]";

const char kvm_more_info_string[] =

	"See 'kvm help COMMAND' for more information on a specific command.";
Signature · 1 line
1.7.0.4
#4 lore raw

PATCH 1/2 kvm tools: remove unused options

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

---
 tools/kvm/builtin-help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/builtin-help.c +1 -1
index e89cd5c..e70044a 100644
@@ -10,7 +10,7 @@
 
 
 const char kvm_usage_string[] =
-	"kvm [--version] [--help] COMMAND [ARGS]";
+	"kvm COMMAND [ARGS]";
 
 const char kvm_more_info_string[] =
 	"See 'kvm help COMMAND' for more information on a specific command.";
Signature · 1 line
1.7.0.4
#5 lore raw

PATCH 1/2 kvm tools: remove unused options

In reply to Pekka Enberg

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

---
 tools/kvm/builtin-help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/builtin-help.c +1 -1
index e89cd5c..e70044a 100644
@@ -10,7 +10,7 @@
 
 
 const char kvm_usage_string[] =
-	"kvm [--version] [--help] COMMAND [ARGS]";
+	"kvm COMMAND [ARGS]";
 
 const char kvm_more_info_string[] =
 	"See 'kvm help COMMAND' for more information on a specific command.";
Signature · 1 line
1.7.0.4
#6 lore raw
Quoted 2 lines · walimis

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

would be nice to implement them: 'kvm --help' should probably map to 'kvm help', and 'kvm --version' should output something similar to what 'perf --version' does:

 $ perf --version
 perf version 3.1.rc1.1356.g57e4aa

which is derived from the base kernel sha1.

Thanks,

Ingo

#7 lore raw
Quoted 11 lines · Ingo Molnar
Quoted 2 lines

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

would be nice to implement them: 'kvm --help' should probably map to 'kvm help', and 'kvm --version' should output something similar to what 'perf --version' does:

$ perf --version
perf version 3.1.rc1.1356.g57e4aa

which is derived from the base kernel sha1.

We already have that :-)

$ ./kvm version
3.0.rc5.755.ge8c28
#8 lore raw
Quoted 11 lines · Pekka Enberg
Quoted 10 lines · Ingo Molnar
Quoted 2 lines

kvm "--help" and "--version" are not implemented, so remove them to avoid ambiguous.

would be nice to implement them: 'kvm --help' should probably map to 'kvm help', and 'kvm --version' should output something similar to what 'perf --version' does:

$ perf --version
perf version 3.1.rc1.1356.g57e4aa
Quoted 6 lines
Quoted 1 line

which is derived from the base kernel sha1.

We already have that :-)

$ ./kvm version
3.0.rc5.755.ge8c28

Yeah - but --version is also a common thing to type. So in perf we support both (Git does the same):

 $ perf version
 perf version 3.1.rc1.1356.g57e4aa
 $ perf --version
 perf version 3.1.rc1.1356.g57e4aa
 $ git version
 git version 1.7.6
 $ git --version
 git version 1.7.6
 $

Btw., it might also be better to output:

kvm version 3.0.1614.geb2e2c

Instead of the current:

3.0.1614.geb2e2c

Thanks,

Ingo