Print out warning when we have no arguments to the commandline.

2003-01-22  Glynn Foster  <glynn.foster@sun.com>

	* src/main.c: Print out warning when we have no arguments to the
	commandline.

	* TODO: Add another item
This commit is contained in:
Glynn Foster 2003-01-22 02:03:09 +00:00 committed by Glynn Foster
parent c0b858a53c
commit 525e0dbe64
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2003-01-22 Glynn Foster <glynn.foster@sun.com>
* src/main.c: Print out warning when we have no arguments to the
commandline.
* TODO: Add another item
2003-01-22 Glynn Foster <glynn.foster@sun.com> 2003-01-22 Glynn Foster <glynn.foster@sun.com>
* help/C/zenity.xml: Clarify some of the documentation a little. Add * help/C/zenity.xml: Clarify some of the documentation a little. Add

1
TODO
View File

@ -1,2 +1,3 @@
* Start being hardass about which options are mandatory
* Add some accessibility I guess * Add some accessibility I guess
* Remove extraneous cruft from configure.in * Remove extraneous cruft from configure.in

View File

@ -833,7 +833,8 @@ main (gint argc, gchar **argv) {
/* FIXME : We should probably handle --display, or at least maybe load some of the gtk+ /* FIXME : We should probably handle --display, or at least maybe load some of the gtk+
* commandline options * 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 (); zenity_free_parsing_options ();
exit (-1); exit (-1);
} }
@ -841,6 +842,7 @@ main (gint argc, gchar **argv) {
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
if (argc < 2) { if (argc < 2) {
g_printerr (_("You must specify more arguments. See zenity --help for more details\n"));
zenity_free_parsing_options (); zenity_free_parsing_options ();
exit (-1); exit (-1);
} }