Commit 94c7718d authored by Bastien Nocera's avatar Bastien Nocera Committed by Bastien Nocera

Use g_option_context_get_help () to print out the help

2008-05-16  Bastien Nocera  <hadess@hadess.net>

	* src/totem-audio-preview.c (main):
	* src/totem-video-indexer.c (main):
	* src/totem-video-thumbnailer.c (main): Use
	g_option_context_get_help () to print out the help


svn path=/trunk/; revision=5411
parent a97fb6cd
2008-05-16 Bastien Nocera <hadess@hadess.net>
* src/totem-audio-preview.c (main):
* src/totem-video-indexer.c (main):
* src/totem-video-thumbnailer.c (main): Use
g_option_context_get_help () to print out the help
============ Version 2.23.3
2008-05-14 Bastien Nocera <hadess@hadess.net>
......
......@@ -108,7 +108,10 @@ int main (int argc, char **argv)
}
if (filenames != NULL && g_strv_length (filenames) != 1) {
g_print ("Too many URIs passed but only one is required\n");
char *help;
help = g_option_context_get_help (context, FALSE, NULL);
g_print ("%s", help);
g_free (help);
return 1;
}
path = filenames ? filenames[0] : "fd://0";
......
......@@ -187,7 +187,10 @@ int main (int argc, char **argv)
print_mimetypes ();
return 0;
} else if (filenames == NULL || g_strv_length (filenames) != 1) {
g_print ("Expects exactly one URI\n");
char *help;
help = g_option_context_get_help (context, FALSE, NULL);
g_print ("%s", help);
g_free (help);
return 1;
}
......
......@@ -474,7 +474,10 @@ int main (int argc, char *argv[])
#endif
if (filenames == NULL || g_strv_length (filenames) != 2) {
g_print ("Expects an input and an output file\n");
char *help;
help = g_option_context_get_help (context, FALSE, NULL);
g_print ("%s", help);
g_free (help);
return 1;
}
input = filenames[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment