Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2364)

Unified Diff: chrome/installer/test/alternate_version_generator_main.cc

Issue 6546027: Add a --force command line option to the alternate_version_generator to allow... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/test/alternate_version_generator_main.cc
===================================================================
--- chrome/installer/test/alternate_version_generator_main.cc (revision 75110)
+++ chrome/installer/test/alternate_version_generator_main.cc (working copy)
@@ -24,6 +24,7 @@
namespace switches {
+const char kForce[] = "force";
const char kHelp[] = "help";
const char kMiniInstaller[] = "mini_installer";
const char kOut[] = "out";
@@ -74,6 +75,7 @@
L"Usage: %s [ OPTIONS ]\n"
L" Where OPTIONS is one or more of:\n"
L" --help Display this help message.\n"
+L" --force Overwrite any existing output files.\n"
L" --mini_installer=SRC_PATH Path to mini_installer.exe. Default value is\n"
L" \"mini_installer.exe\" in the same directory as\n"
L" this program.\n"
@@ -146,7 +148,7 @@
FilePath out;
GetOutPath(*cmd_line, &out);
- if (file_util::PathExists(out)) {
+ if (!cmd_line->HasSwitch(switches::kForce) && file_util::PathExists(out)) {
DumpUsage(*cmd_line, errors::OUT_FILE_EXISTS, out.value());
return EXIT_FAILURE;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698