diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index cc05cd945..9dbb6cea2 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -45,8 +45,40 @@ class ConfigCommand extends Command new InputArgument('setting-key', null, 'Setting key'), new InputArgument('setting-value', InputArgument::IS_ARRAY, 'Setting value'), )) - // @todo Document ->setHelp(<<USAGE: + +To edit the global config.json file: + + php composer.phar --global + +To add a repository: + + php composer.phar repositories.foo vcs http://bar.com + +You can add a repository to the global config.json file by passing in the +--global option. + +If you want to launch your editor with the composer.json file you must have +\$EDITOR set. + + php composer.phar --edit + +To get a list of configuration values in the file, pass the --list option. + + php composer.phar --list + +You can always pass more than one option. As an example, if you want to edit the +global config.json file. + + php composer.phar --edit --global + +LIMITATIONS + +The command only supports repositories and process-timeout right now. EOT )