summaryrefslogtreecommitdiffstats
path: root/src/command_line_options.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2018-06-15 14:05:25 +0200
committerSimon Rettberg2018-06-15 14:05:25 +0200
commitba3c5aa40274c11f9cefd4e9842be3488cad07b4 (patch)
tree2865703ae78ed397f24fa32fca642332ac7b3a49 /src/command_line_options.cpp
parentfileDownloader.* -> filedownloader.* (diff)
downloadvmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.gz
vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.xz
vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.zip
Fix indentation, cleanup, refactoring, deletions
* Remove unused methods for adding hostname and user to xml * Avoid copying/(de)serializing XML a thousand times * Fix Session::isValid() or rather make it a bit more usable (although it's unused currently) * baseDir is global, not per VSession, which doesn't make any sense without the legacy approach of recusively loading one xml file per entry
Diffstat (limited to 'src/command_line_options.cpp')
-rw-r--r--src/command_line_options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp
index 818bc06..2018760 100644
--- a/src/command_line_options.cpp
+++ b/src/command_line_options.cpp
@@ -6,7 +6,7 @@
CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
// parse command line arguments (please sort by short option for easier handling)
static const struct option longOptions[] = {
- {"allow-vm-edit", no_argument, NULL, 'vmed'},
+ {"allow-vm-edit", no_argument, NULL, 'vmed'},
{"autoquit", required_argument, NULL, 'aqit'},
{"base", required_argument, NULL, 'b'},
{"path", required_argument, NULL, 'b'}, // Compatibility to v1.0
@@ -114,8 +114,8 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
options.insert("uuid", optarg);
break;
case 'vmed':
- options.insert("allow-vm-edit", "");
- break;
+ options.insert("allow-vm-edit", "");
+ break;
default:
options.insert("error", "error");
break;