aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzblctrl.c
diff options
context:
space:
mode:
authorGravatar Vsevolod Kozlov <zaba@thorium.homeunix.org>2009-05-29 18:39:41 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-29 18:39:41 +0200
commit86d8f9b372c9c558527a2fc7b305f1a681e97d68 (patch)
tree0782f90849f403f1b8dea27bdeb62f8cf90b5ef0 /uzblctrl.c
parent075fe52dac7f032640669f7c454789ba6506f1b6 (diff)
cleanup uzblctrl
Diffstat (limited to 'uzblctrl.c')
-rw-r--r--uzblctrl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/uzblctrl.c b/uzblctrl.c
index 55a3aac..9aaca0b 100644
--- a/uzblctrl.c
+++ b/uzblctrl.c
@@ -23,7 +23,7 @@ static gchar* command;
static GOptionEntry entries[] =
{
- { "socket", 's', 0, G_OPTION_ARG_STRING, &sockpath, "Socket path of the client uzbl", NULL },
+ { "socket", 's', 0, G_OPTION_ARG_STRING, &sockpath, "Path to the uzbl socket", NULL },
{ "command", 'c', 0, G_OPTION_ARG_STRING, &command, "The uzbl command to execute", NULL },
{ NULL, 0, 0, 0, NULL, NULL, NULL }
};
@@ -31,7 +31,7 @@ static GOptionEntry entries[] =
int
main(int argc, char* argv[]) {
GError *error = NULL;
- GOptionContext* context = g_option_context_new ("- some stuff here maybe someday");
+ GOptionContext* context = g_option_context_new ("- utility for controlling uzbl");
g_option_context_add_main_entries (context, entries, NULL);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_parse (context, &argc, &argv, &error);
@@ -64,8 +64,7 @@ main(int argc, char* argv[]) {
return 0;
} else {
- printf ("You need to specify the -s and -c parameters for uzblctrl to do anything of use.\n");
- printf ("Usage: uzblctrl -s /path/to/socket -c \"command\"\n");
+ puts ("Usage: uzblctrl -s /path/to/socket -c \"command\"");
return 1;
}
}