1
0
Fork 0

Update archive format docs, refs #10087

pull/10335/head
Jordi Boggiano 2021-12-07 15:56:35 +01:00
parent 74951b5377
commit a4a89f1508
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 3 additions and 3 deletions

View File

@ -953,8 +953,8 @@ php composer.phar archive vendor/package 2.0.21 --format=zip
### Options ### Options
* **--format (-f):** Format of the resulting archive: tar, tar.gz or zip * **--format (-f):** Format of the resulting archive: tar, tar.gz, tar.bz2
(default: "tar") or zip (default: "tar").
* **--dir:** Write the archive to this directory (default: ".") * **--dir:** Write the archive to this directory (default: ".")
* **--file:** Write the archive with the given file name. * **--file:** Write the archive with the given file name.

View File

@ -49,7 +49,7 @@ class ArchiveCommand extends BaseCommand
->setDefinition(array( ->setDefinition(array(
new InputArgument('package', InputArgument::OPTIONAL, 'The package to archive instead of the current project'), 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 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('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.' new InputOption('file', null, InputOption::VALUE_REQUIRED, 'Write the archive with the given file name.'
.' Note that the format will be appended.'), .' Note that the format will be appended.'),