[glib/ignatenko/mkenum-critical: 4/5] mkenums: don't try to call undefined function



commit 1a182df5d1abdc7a1101c53651561e6cc5f30f73
Author: Igor Gnatenko <ignatenko src gnome org>
Date:   Sat Jul 15 15:30:16 2017 +0200

    mkenums: don't try to call undefined function
    
    argparse will take care about everything
    
    Signed-off-by: Igor Gnatenko <ignatenko src gnome org>

 gobject/glib-mkenums.in |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 08224ef..04e18af 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -230,9 +230,6 @@ def read_template_file(file):
     if comment_tmpl == "":
         comment_tmpl = "/* \u0040comment\u0040 */"
 
-if len(sys.argv) == 1:
-    usage()
-
 parser = argparse.ArgumentParser(epilog=help_epilog,
                                  formatter_class=argparse.RawDescriptionHelpFormatter)
 


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