[Xfce4-commits] r30186 - terminal/trunk/terminal
Nick Schermer
nick at xfce.org
Fri Jul 3 17:31:25 CEST 2009
Author: nick
Date: 2009-07-03 15:31:25 +0000 (Fri, 03 Jul 2009)
New Revision: 30186
Modified:
terminal/trunk/terminal/main.c
Log:
Refactor and group the options a bit so it's easier to understand.
Modified: terminal/trunk/terminal/main.c
===================================================================
--- terminal/trunk/terminal/main.c 2009-07-03 14:25:06 UTC (rev 30185)
+++ terminal/trunk/terminal/main.c 2009-07-03 15:31:25 UTC (rev 30186)
@@ -43,13 +43,27 @@
static void
usage (void)
{
- g_print ("%s\n", _("Usage: Terminal [OPTION...]"));
+ g_print ("%s\n", _("Usage:"));
+ g_print (" %s [%s...]\n", PACKAGE_NAME, _("OPTION"));
g_print ("\n");
+ g_print ("%s:\n", _("General Options"));
g_print ("%s\n", _(" -h, --help Print this help message and exit"));
- g_print ("%s\n", _(" -v, --version Print version information and exit"));
+ g_print ("%s\n", _(" -V, --version Print version information and exit"));
g_print ("%s\n", _(" --disable-server Do not register with the D-BUS\n"
" session message bus"));
+ g_print ("%s\n", _(" --default-display=DISPLAY default X display to use"));
+ g_print ("%s\n", _(" --default-working-directory=DIRNAME Set the default terminal's working\n"
+ " directory"));
g_print ("\n");
+ g_print ("%s:\n", _("Window or Tab Separators"));
+ g_print ("%s\n", _(" --tab Open a new tab in the last-specified\n"
+ " window; more than one of these\n"
+ " options can be provided"));
+ g_print ("%s\n", _(" --window Open a new window containing one tab;\n"
+ " more than one of these options can be\n"
+ " provided"));
+ g_print ("\n");
+ g_print ("%s:\n", _("Tab Options"));
g_print ("%s\n", _(" -x, --execute Execute the remainder of the command\n"
" line inside the terminal"));
g_print ("%s\n", _(" -e, --command=STRING Execute the argument to this option\n"
@@ -59,6 +73,7 @@
g_print ("%s\n", _(" -H, --hold Do not immediately destroy the tab\n"
" when the child command exits"));
g_print ("\n");
+ g_print ("%s:\n", _("Window Options"));
g_print ("%s\n", _(" --display=DISPLAY X display to use for the last-\n"
" specified window"));
g_print ("%s\n", _(" --geometry=GEOMETRY X geometry specification (see \"X\"\n"
@@ -76,7 +91,7 @@
" fullscreen mode; applies to only one\n"
" window; can be specified once for\n"
" each window you create from the\n"
- " command line."));
+ " command line"));
g_print ("%s\n", _(" --show-menubar Turn on the menubar for the last-\n"
" specified window; applies to only one\n"
" window; can be specified once for\n"
@@ -108,17 +123,6 @@
" each window you create from the\n"
" command line"));
g_print ("\n");
- g_print ("%s\n", _(" --tab Open a new tab in the last-specified\n"
- " window; more than one of these\n"
- " options can be provided"));
- g_print ("%s\n", _(" --window Open a new window containing one tab;\n"
- " more than one of these options can be\n"
- " provided"));
- g_print ("\n");
- g_print ("%s\n", _(" --default-display=DISPLAY default X display to use"));
- g_print ("%s\n", _(" --default-working-directory=DIRNAME Set the default terminal's working\n"
- " directory"));
- g_print ("\n");
}
More information about the Xfce4-commits
mailing list