Update archive format docs, refs #10087
parent
74951b5377
commit
a4a89f1508
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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.'),
|
||||||
|
|
Loading…
Reference in New Issue