From 525e0dbe64d049602becadb3e6571fdce7f8687b Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Wed, 22 Jan 2003 02:03:09 +0000 Subject: [PATCH] Print out warning when we have no arguments to the commandline. 2003-01-22 Glynn Foster * src/main.c: Print out warning when we have no arguments to the commandline. * TODO: Add another item --- ChangeLog | 7 +++++++ TODO | 1 + src/main.c | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 25339c0..c20ca69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-22 Glynn Foster + + * src/main.c: Print out warning when we have no arguments to the + commandline. + + * TODO: Add another item + 2003-01-22 Glynn Foster * help/C/zenity.xml: Clarify some of the documentation a little. Add diff --git a/TODO b/TODO index d48f7da..305fe2a 100644 --- a/TODO +++ b/TODO @@ -1,2 +1,3 @@ +* Start being hardass about which options are mandatory * Add some accessibility I guess * Remove extraneous cruft from configure.in diff --git a/src/main.c b/src/main.c index c2155f1..4350214 100644 --- a/src/main.c +++ b/src/main.c @@ -833,7 +833,8 @@ main (gint argc, gchar **argv) { /* FIXME : We should probably handle --display, or at least maybe load some of the gtk+ * commandline options */ - g_printerr (_("%s in an invalid option for this dialog\n"), poptBadOption (ctx, 0)); + g_printerr (_("%s in an invalid option for this dialog. See zenity --help for more details\n"), + poptBadOption (ctx, 0)); zenity_free_parsing_options (); exit (-1); } @@ -841,6 +842,7 @@ main (gint argc, gchar **argv) { gtk_init (&argc, &argv); if (argc < 2) { + g_printerr (_("You must specify more arguments. See zenity --help for more details\n")); zenity_free_parsing_options (); exit (-1); }