[Libguestfs] [PATCH libguestfs 3/5] guestfish: don't try to diagnose getopt failure

Jim Meyering jim at meyering.net
Mon Aug 24 10:21:55 UTC 2009


From: Jim Meyering <meyering at redhat.com>

* fish/fish.c: ... getopt_long already does that.  Instead, suggest
"Try `guestfish --help' for more information."
---
 fish/fish.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fish/fish.c b/fish/fish.c
index 8ea1c49..964c906 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -320,8 +320,6 @@ main (int argc, char *argv[])
       usage (0);

     default:
-      fprintf (stderr, _("%s: unexpected command line option 0x%x\n"),
-               program_name, c);
       usage (1);
     }
   }
-- 
1.6.4.378.g88f2f




More information about the Libguestfs mailing list