[xen-tools-dev] [PATCH] Remove hyphen in options.

Stéphane Jourdois sjourdois at gmail.com
Sun Jul 11 15:38:43 CEST 2010


Options no-hosts and copy-hosts do not have hyphens in default
configuration.
This helps to prove t/argument-check.t.
---
 bin/xen-create-image |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/xen-create-image b/bin/xen-create-image
index 22b552e..2219b65 100755
--- a/bin/xen-create-image
+++ b/bin/xen-create-image
@@ -92,9 +92,9 @@ xen-create-image - Easily create new Xen instances with networking and OpenSSH.
 
    --hooks=1    Specify whether to run hooks after the image is created.
 
-   --no-hosts   Don't touch /etc/hosts on the dom0.
+   --nohosts    Don't touch /etc/hosts on the dom0.
 
-   --copy-hosts Copy entries from the dom0's /etc/hosts file to the guest
+   --copyhosts  Copy entries from the dom0's /etc/hosts file to the guest
 
    --partitions=file
                 Use a specific partition layout configuration file.
@@ -1550,8 +1550,8 @@ sub parseCommandLineArguments
           
 
             # Hosts options
-            "no-hosts",   \$CONFIG{ 'nohosts' },
-            "copy-hosts", \$CONFIG{ 'copyhosts' },
+            "nohosts",   \$CONFIG{ 'nohosts' },
+            "copyhosts", \$CONFIG{ 'copyhosts' },
 
             # Networking options
             "dhcp",         \$CONFIG{ 'dhcp' },
-- 
1.5.6.5



More information about the xen-tools-dev mailing list