Commit 5b1bc81
parse argument
Changed files (2)
Diff
@@ -20,7 +20,6 @@ using Supplement; public static int main (string[] arg) { Supplement.Supplement supplement = new Supplement.Supplement ();- supplement.init (arg); Gtk.init (ref arg);@@ -36,7 +36,6 @@ public class Supplement { int err_arg; int i; File font_file; - Argument args; IdleSource idle; string exec_path; @@ -151,6 +150,11 @@ public class Supplement { } internal static bool has_argument (string param) { + if (is_null (args)) { + warning ("args is null"); + return false; + } + return args.has_argument (param); }