瀏覽代碼

Add disable-tls to self-update command as a defined option

Pádraic Brady 11 年之前
父節點
當前提交
fa6c8eb6c0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Composer/Command/SelfUpdateCommand.php

+ 1 - 0
src/Composer/Command/SelfUpdateCommand.php

@@ -43,6 +43,7 @@ class SelfUpdateCommand extends Command
                 new InputOption('rollback', 'r', InputOption::VALUE_NONE, 'Revert to an older installation of composer'),
                 new InputOption('clean-backups', null, InputOption::VALUE_NONE, 'Delete old backups during an update. This makes the current version of composer the only backup available after the update'),
                 new InputArgument('version', InputArgument::OPTIONAL, 'The version to update to'),
+                new InputOption('disable-tls', null, InputArgument::VALUE_NONE, 'Disable SSL/TLS protection for HTTPS requests'),
             ))
             ->setHelp(<<<EOT
 The <info>self-update</info> command checks getcomposer.org for newer