diff options
author | Sebastian Schmelzer | 2011-03-04 18:14:37 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2011-03-04 18:14:37 +0100 |
commit | 5f450cd48bae1a3c833b93089152f6b308d43c24 (patch) | |
tree | d74ab79170e6b219f64bfb5ac0f9da6e76a4a078 /src/command_line_options.cpp | |
parent | Merge branch 'master' of openslx.org:openslx/tools/vmchooser (diff) | |
download | vmchooser-5f450cd48bae1a3c833b93089152f6b308d43c24.tar.gz vmchooser-5f450cd48bae1a3c833b93089152f6b308d43c24.tar.xz vmchooser-5f450cd48bae1a3c833b93089152f6b308d43c24.zip |
* add debug mode
* implement isValid() for vsessions (checks vmdk/vbox existence)
* make use of isValid() and isActive() when filling the session list
* add icons for vbox, lxde, unknown images, failsafe/term
* use exec to guess xsession icon instead of desciption
* FIX: remove newlines/whitespaces from xmlfilter.sh output
Diffstat (limited to 'src/command_line_options.cpp')
-rw-r--r-- | src/command_line_options.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp index 6ace24a..1bc6c4a 100644 --- a/src/command_line_options.cpp +++ b/src/command_line_options.cpp @@ -12,12 +12,13 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { {"xpath", required_argument, NULL, 'x'}, {"size", required_argument, NULL, 's'}, {"pvs", no_argument, NULL, 'b'}, + {"debug", no_argument, NULL, 'D'}, {"version", no_argument, NULL, 'v'}, {"help", no_argument, NULL, 'h'}, {0, 0, 0, 0} }; - int opt = getopt_long(argc, argv, "c:d:P:p:x:s:w:vhb", longOptions, NULL); + int opt = getopt_long(argc, argv, "c:d:P:p:x:s:w:vhbD", longOptions, NULL); if (opt == -1) break; switch (opt) { @@ -27,6 +28,9 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { case 'd': options.insert("default", optarg); break; + case 'D': + options.insert("debugMode", "debugMode"); + break; case 'P': options.insert("pool", optarg); break; |