diff --git a/doc/03-cli.md b/doc/03-cli.md index 53c6ced5a..c59045cb1 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -953,8 +953,8 @@ php composer.phar archive vendor/package 2.0.21 --format=zip ### Options -* **--format (-f):** Format of the resulting archive: tar, tar.gz or zip - (default: "tar") +* **--format (-f):** Format of the resulting archive: tar, tar.gz, tar.bz2 + or zip (default: "tar"). * **--dir:** Write the archive to this directory (default: ".") * **--file:** Write the archive with the given file name. diff --git a/src/Composer/Command/ArchiveCommand.php b/src/Composer/Command/ArchiveCommand.php index c30c2364d..acf72c548 100644 --- a/src/Composer/Command/ArchiveCommand.php +++ b/src/Composer/Command/ArchiveCommand.php @@ -49,7 +49,7 @@ class ArchiveCommand extends BaseCommand ->setDefinition(array( new InputArgument('package', InputArgument::OPTIONAL, 'The package to archive instead of the current project'), new InputArgument('version', InputArgument::OPTIONAL, 'A version constraint to find the package to archive'), - new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the resulting archive: tar or zip'), + new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the resulting archive: tar, tar.gz, tar.bz2 or zip (default tar)'), new InputOption('dir', null, InputOption::VALUE_REQUIRED, 'Write the archive to this directory'), new InputOption('file', null, InputOption::VALUE_REQUIRED, 'Write the archive with the given file name.' .' Note that the format will be appended.'),