reorder options in manpage and --help

This commit is contained in:
Simon Gomizelj 2013-06-17 02:03:55 -04:00
parent 7c949dc22d
commit 85d49aca17
2 changed files with 17 additions and 16 deletions

View File

@ -14,25 +14,26 @@ terminal experience and pleasant array of keyboard-centric features.
Display help message. Display help message.
.IP "\fB\-v\fR, \fB\-\-version\fR" .IP "\fB\-v\fR, \fB\-\-version\fR"
Display version information. Display version information.
.IP "\fB\-r\fR, \fB\-\-role\fR\fB=\fR\fIROLE\fR"
The role to set the termite window to report itself with.
.IP "\fB\-d\fR, \fB\-\-directory\fR\fB=\fR\fIDIRECTORY\fR"
Tell termite to change to \fIDIRECTORY\fP when launching.
.IP "\fB\-e\fR, \fB\-\-exec\fR\fB=\fR\fICOMMAND\fR" .IP "\fB\-e\fR, \fB\-\-exec\fR\fB=\fR\fICOMMAND\fR"
Tell termite start \fICOMMAND\fP instead of the shell. Tell termite start \fICOMMAND\fP instead of the shell.
.IP "\fB\-r\fR, \fB\-\-role\fR\fB=\fR\fIROLE\fR"
The role to set the termite window to report itself with.
.IP "\fB\-t\fR, \fB\-\-title\fR\fB=\fR\fITITLE\fR" .IP "\fB\-t\fR, \fB\-\-title\fR\fB=\fR\fITITLE\fR"
Set the termite window's title to \fITITLE\fP. This disables dynamic Set the termite window's title to \fITITLE\fP. This disables dynamic
titles. titles.
.IP "\fB\-c\fR, \fB\-\-config\fR\fB=\fR\fICONFIG\fR" .IP "\fB\-d\fR, \fB\-\-directory\fR\fB=\fR\fIDIRECTORY\fR"
Specify a path to an alternative config file to use. Tell termite to change to \fIDIRECTORY\fP when launching.
.IP "\fB\-x\fR, \fB\-\-transparency\fR\fB=\fR\fITRANSPARENCY\fR" .IP "\fB\-x\fR, \fB\-\-transparency\fR\fB=\fR\fILEVEL\fR"
Sets the inital Transparency. Sets the window's transparency to \fILEVEL\fP, ranging from \fI0.0\fP
(fully opaque) to \fI1.0\fP (fully transparent).
.IP "\fB\-\-geometry\fR\fB=\fR\fIGEOMETRY\fR" .IP "\fB\-\-geometry\fR\fB=\fR\fIGEOMETRY\fR"
Override the window geometry in pixels. Override the window geometry in pixels.
.IP "\fB\-\-display\fR\fB=\fR\fIDISPLAY\fR"
Launch on \fIDISPLAY\fP X display.
.IP "\fB\-\-hold\fR" .IP "\fB\-\-hold\fR"
Keep termite open after the child process exits. Keep termite open after the child process exits.
.IP "\fB\-\-display\fR\fB=\fR\fIDISPLAY\fR"
Launch on \fIDISPLAY\fP X display.
.IP "\fB\-c\fR, \fB\-\-config\fR\fB=\fR\fICONFIG\fR"
Specify a path to an alternative config file to use.
.SH KEYBINDINGS .SH KEYBINDINGS
.SS Insert Mode .SS Insert Mode
\fBInsert Mode\fP is the default mode common to most terminal emulators. \fBInsert Mode\fP is the default mode common to most terminal emulators.

View File

@ -1258,15 +1258,15 @@ int main(int argc, char **argv) {
char *title = nullptr; char *title = nullptr;
double trans = 0.0; double trans = 0.0;
const GOptionEntry entries[] = { const GOptionEntry entries[] = {
{"role", 'r', 0, G_OPTION_ARG_STRING, &role, "The role to use", "ROLE"},
{"geometry", 0, 0, G_OPTION_ARG_STRING, &geometry, "Window geometry", "GEOMETRY"},
{"directory", 'd', 0, G_OPTION_ARG_STRING, &directory, "Change to directory", "DIRECTORY"},
{"exec", 'e', 0, G_OPTION_ARG_STRING, &execute, "Command to execute", "COMMAND"},
{"title", 't', 0, G_OPTION_ARG_STRING, &title, "Window title", "TITLE"},
{"version", 'v', 0, G_OPTION_ARG_NONE, &version, "Version info", nullptr}, {"version", 'v', 0, G_OPTION_ARG_NONE, &version, "Version info", nullptr},
{"exec", 'e', 0, G_OPTION_ARG_STRING, &execute, "Command to execute", "COMMAND"},
{"role", 'r', 0, G_OPTION_ARG_STRING, &role, "The role to use", "ROLE"},
{"title", 't', 0, G_OPTION_ARG_STRING, &title, "Window title", "TITLE"},
{"directory", 'd', 0, G_OPTION_ARG_STRING, &directory, "Change to directory", "DIRECTORY"},
{"transparency", 'x', 0, G_OPTION_ARG_DOUBLE, &trans, "Initial transparency", "OPACITY"},
{"geometry", 0, 0, G_OPTION_ARG_STRING, &geometry, "Window geometry", "GEOMETRY"},
{"hold", 0, 0, G_OPTION_ARG_NONE, &hold, "Remain open after child process exits", nullptr}, {"hold", 0, 0, G_OPTION_ARG_NONE, &hold, "Remain open after child process exits", nullptr},
{"config", 'c', 0, G_OPTION_ARG_STRING, &config_file, "Path of config file", "CONFIG"}, {"config", 'c', 0, G_OPTION_ARG_STRING, &config_file, "Path of config file", "CONFIG"},
{"transparency", 'x', 0, G_OPTION_ARG_DOUBLE, &trans, "Initial transparency", "TRANSPARENCY"},
{} {}
}; };
g_option_context_add_main_entries(context, entries, nullptr); g_option_context_add_main_entries(context, entries, nullptr);