Skip to content

Commit f61edbc

Browse files
committed
Making ID and token required if theyre given
1 parent 3f2e568 commit f61edbc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ Configures your account ID and access token.
109109

110110
### `file`
111111

112-
$ php magedownload.phar file <name> <destination>
112+
$ php magedownload.phar file <name> [<destination>]
113113

114114
or
115115

116-
$ php n98-magerun.phar download:file <name> <destination>
116+
$ php n98-magerun.phar download:file <name> [<destination>]
117117

118118
Downloads the specified file to the given destination.
119119

src/MageDownload/Command/AbstractCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ protected function configure()
4343
->addOption(
4444
'id',
4545
null,
46-
InputOption::VALUE_OPTIONAL,
46+
InputOption::VALUE_REQUIRED,
4747
'Magento account ID'
4848
)
4949
->addOption(
5050
'token',
5151
null,
52-
InputOption::VALUE_OPTIONAL,
52+
InputOption::VALUE_REQUIRED,
5353
'Magento access token'
5454
);
5555
}

0 commit comments

Comments
 (0)