Update archive format docs, refs #10087

main
Jordi Boggiano 2 years ago
parent 74951b5377
commit a4a89f1508
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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.

@ -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.'),

Loading…
Cancel
Save