Hi,

running 'VBoxManage showvminfo <uuid|name> --statistics' throws:

| Syntax error: unknown option: --statistics

even though the option is listed in the usage instructions:

| VBoxManage showvminfo       <uuid>|<name> [--details] [--statistics]

Since svn r27822 ("Removed guest statistics interface; to be
merged with metrics.") the --statistics option is no longer
available in combination with the showvminfo option.

The attached trivial patch (against current trunk) addresses this
issue.

In case it's relevant: I hereby license my patch under
the MIT license.

PS: It's not obvious from neither
http://www.virtualbox.org/wiki/Mailing_lists nor
http://www.virtualbox.org/mailman/listinfo/vbox-dev that you've to
be subscribed to the list to be able to send messages.

regards,
-mika-
From eacf9bec51026b46dd3aa966c25598335ef06fac Mon Sep 17 00:00:00 2001
From: Michael Prokop <[email protected]>
Date: Sun, 6 Feb 2011 01:48:48 +0100
Subject: [PATCH] Drop --statistics from showvminfo usage information

Since svn r27822 ("Removed guest statistics interface; to be
merged with metrics.") the --statistics option is no longer
available in combination with the showvminfo option.
---
 src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp b/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
index 59a5749..5cf56c5 100644
--- a/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
+++ b/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
@@ -116,7 +116,7 @@ void printUsage(USAGECATEGORY u64Cmd, PRTSTREAM pStrm)
 
     if (u64Cmd & USAGE_SHOWVMINFO)
         RTStrmPrintf(pStrm,
-                     "VBoxManage showvminfo       <uuid>|<name> [--details] [--statistics]\n"
+                     "VBoxManage showvminfo       <uuid>|<name> [--details]\n"
                      "                            [--machinereadable]\n"
                      "VBoxManage showvminfo       <uuid>|<name> --log <idx>\n"
                      "\n");
-- 
1.7.2.3

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to