[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH V2] remove the useless "h" option



"h" option is not enabled in virt-cat, remove it.

Signed-off-by: Wanlong Gao <gaowanlong cn fujitsu com>
---
 cat/virt-cat.c             | 3 ---
 edit/virt-edit.c           | 3 ---
 inspector/virt-inspector.c | 3 ---
 rescue/virt-rescue.c       | 3 ---
 4 files changed, 12 deletions(-)

diff --git a/cat/virt-cat.c b/cat/virt-cat.c
index 2a6b64f..5ea461e 100644
--- a/cat/virt-cat.c
+++ b/cat/virt-cat.c
@@ -158,9 +158,6 @@ main (int argc, char *argv[])
       OPTION_d;
       break;
 
-    case 'h':
-      usage (EXIT_SUCCESS);
-
     case 'v':
       OPTION_v;
       break;
diff --git a/edit/virt-edit.c b/edit/virt-edit.c
index 3627ab8..73d6f07 100644
--- a/edit/virt-edit.c
+++ b/edit/virt-edit.c
@@ -198,9 +198,6 @@ main (int argc, char *argv[])
       perl_expr = optarg;
       break;
 
-    case 'h':
-      usage (EXIT_SUCCESS);
-
     case 'v':
       OPTION_v;
       break;
diff --git a/inspector/virt-inspector.c b/inspector/virt-inspector.c
index 65e52a0..8b06fa7 100644
--- a/inspector/virt-inspector.c
+++ b/inspector/virt-inspector.c
@@ -177,9 +177,6 @@ main (int argc, char *argv[])
       OPTION_d;
       break;
 
-    case 'h':
-      usage (EXIT_SUCCESS);
-
     case 'v':
       OPTION_v;
       break;
diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c
index f9142e8..c0e5f56 100644
--- a/rescue/virt-rescue.c
+++ b/rescue/virt-rescue.c
@@ -217,9 +217,6 @@ main (int argc, char *argv[])
       OPTION_d;
       break;
 
-    case 'h':
-      usage (EXIT_SUCCESS);
-
     case 'm':
       if (sscanf (optarg, "%u", &memsize) != 1) {
         fprintf (stderr, _("%s: could not parse memory size '%s'\n"),
-- 
1.7.12.1.401.gb5d156c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]