rename --keep-file to --file-keep v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 26 Oct 2019 20:55:10 +0200
branchv_0
changeset 17 b3c07fb178be
parent 16 3c51a2c32c86
child 18 76cbba3f7041
rename --keep-file to --file-keep
src/CLIParser.h
--- a/src/CLIParser.h	Sat Oct 26 19:28:39 2019 +0200
+++ b/src/CLIParser.h	Sat Oct 26 20:55:10 2019 +0200
@@ -52,7 +52,7 @@
 	static const string_t OPTION_COPY;
 	static const string_t OPTION_COPY_RENAMED;
 	static const string_t OPTION_FILE;
-	static const string_t OPTION_KEEP_FILE;
+	static const string_t OPTION_FILE_KEEP;
 
 	Configuration parse(const std::vector<string_t>& arguments) {
 		Configuration c;
@@ -75,7 +75,7 @@
 				c.copyRelations.push_back({readNext(arguments, i), readNext(arguments, i), true});
 			} else if (option == OPTION_FILE) {
 				c.file = readNext(arguments, i);
-			} else if (option == OPTION_KEEP_FILE) {
+			} else if (option == OPTION_FILE_KEEP) {
 				string_t value = readNext(arguments, i);
 				if (value == L"auto") c.keepFile = KeepFile::Automatic;
 				else if (value == L"true") c.keepFile = KeepFile::Always;
@@ -101,7 +101,7 @@
 const string_t CLIParser::OPTION_COPY = L"--copy";
 const string_t CLIParser::OPTION_COPY_RENAMED = L"--copy-renamed";
 const string_t CLIParser::OPTION_FILE = L"--file";
-const string_t CLIParser::OPTION_KEEP_FILE = L"--keep-file";
+const string_t CLIParser::OPTION_FILE_KEEP = L"--file-keep";
 
 }
 }