diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-22 15:28:53 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-22 15:28:53 (GMT) |
commit | ab2eef49371b2c9e45efea128fc84f3d556d1901 (patch) | |
tree | 4054a47639da3cf7ac262b1122110d38cb3aad41 /src/cli_options.cc | |
parent | 3cda1099e265fd8d08bf5f19a0cbd15d6ad5f0d3 (diff) | |
download | fluxbox-ab2eef49371b2c9e45efea128fc84f3d556d1901.zip fluxbox-ab2eef49371b2c9e45efea128fc84f3d556d1901.tar.bz2 |
Add -no-slit and -no-toolbar flags
Sometimes fluxbox is used as a component of a desktop environment (
e.g., the "Lumina Desktop"). It's easier and more stable for this kind
of "users" to disable the toolbar or the slit alltogether. Why not
configure these features out? Because then they would need 2 installations
of fluxbox: One without the slit and the toolbar (and perhaps other
components) and one with them.
This implements feature request #314, at least partially.
This commit also looks bigger than it actually is: I refactored and cleaned
up classes Fluxbox and BScreen.
Diffstat (limited to 'src/cli_options.cc')
-rw-r--r-- | src/cli_options.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cli_options.cc b/src/cli_options.cc index 3003070..9e30af7 100644 --- a/src/cli_options.cc +++ b/src/cli_options.cc | |||
@@ -129,6 +129,8 @@ int FluxboxCli::Options::parse(int argc, char** argv) { | |||
129 | "-display <string>\t\tuse display connection.\n" | 129 | "-display <string>\t\tuse display connection.\n" |
130 | "-screen <all|int,int,int>\trun on specified screens only.\n" | 130 | "-screen <all|int,int,int>\trun on specified screens only.\n" |
131 | "-rc <string>\t\t\tuse alternate resource file.\n" | 131 | "-rc <string>\t\t\tuse alternate resource file.\n" |
132 | "-no-slit\t\t\tdo not provide a slit.\n" | ||
133 | "-no-toolbar\t\t\tdo not provide a toolbar.\n" | ||
132 | "-version\t\t\tdisplay version and exit.\n" | 134 | "-version\t\t\tdisplay version and exit.\n" |
133 | "-info\t\t\t\tdisplay some useful information.\n" | 135 | "-info\t\t\t\tdisplay some useful information.\n" |
134 | "-list-commands\t\t\tlist all valid key commands.\n" | 136 | "-list-commands\t\t\tlist all valid key commands.\n" |
@@ -136,7 +138,7 @@ int FluxboxCli::Options::parse(int argc, char** argv) { | |||
136 | "-log <filename>\t\t\tlog output to file.\n" | 138 | "-log <filename>\t\t\tlog output to file.\n" |
137 | "-help\t\t\t\tdisplay this help text and exit.\n\n", | 139 | "-help\t\t\t\tdisplay this help text and exit.\n\n", |
138 | 140 | ||
139 | "Main usage string. Please lay it out nicely. There is one %s that is given the version").c_str(), | 141 | "Main usage string. Please lay it out nicely. One %%s gives the version, ther other gives the year").c_str(), |
140 | __fluxbox_version, "2001-2015"); | 142 | __fluxbox_version, "2001-2015"); |
141 | return EXIT_SUCCESS; | 143 | return EXIT_SUCCESS; |
142 | } else if (arg == "-info" || arg == "-i" || arg == "--info") { | 144 | } else if (arg == "-info" || arg == "-i" || arg == "--info") { |