diff --git a/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php b/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php --- a/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php +++ b/src/applications/repository/management/PhabricatorRepositoryManagementMovePathsWorkflow.php @@ -19,6 +19,10 @@ 'param' => 'prefix', 'help' => pht('Replace matching prefixes with this string.'), ), + array( + 'name' => 'force', + 'help' => pht('Apply changes without prompting.'), + ), )); } @@ -47,6 +51,8 @@ 'You must specify a path prefix to move to with --to.')); } + $is_force = $args->getArg('force'); + $rows = array(); $any_changes = false; @@ -118,7 +124,7 @@ } $prompt = pht('Apply these changes?'); - if (!phutil_console_confirm($prompt)) { + if (!$is_force && !phutil_console_confirm($prompt)) { throw new Exception(pht('Declining to apply changes.')); }