Skip to content

Commit fb34f32

Browse files
committed
fix: some flags error on built in command method comments
1 parent 0524147 commit fb34f32

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/BuiltIn/DevServerCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,24 @@ public static function aliases(): array
4040
* {command} [-H HOST] [-p PORT]
4141
* {command} [-S HOST:PORT] [file=]web/index.php
4242
* @options
43-
* -s, -S, --addr STRING The http server address. e.g 127.0.0.1:8552
44-
* -t, --doc-root STRING The document root dir for server(<comment>public</comment>)
45-
* -H,--host STRING The server host address(<comment>127.0.0.1</comment>)
46-
* -p,--port INTEGER The server port number(<comment>8552</comment>)
47-
* -b,--php-bin STRING The php binary file(<comment>php</comment>)
43+
* -s, -S, --addr The http server address. e.g 127.0.0.1:8552
44+
* -t, --doc-root The document root dir for server(<comment>public</comment>)
45+
* -H,--host The server host address(<comment>127.0.0.1</comment>)
46+
* -p,--port The server port number(<comment>8552</comment>)
47+
* -b,--php-bin The php binary file(<comment>php</comment>)
4848
* @arguments
4949
* file=STRING The entry file for server. e.g web/index.php
5050
*
5151
* @param Input $input
5252
* @param Output $output
5353
*
54-
* @return int|mixed|void
54+
* @return void
5555
* @throws Exception
5656
* @example
5757
* {command} -S 127.0.0.1:8552 web/index.php
5858
*/
5959
#[CmdOption('dev-serve', 'start a php built-in http server for developmentd')]
60-
public function execute($input, $output)
60+
public function execute(Input $input, Output $output)
6161
{
6262
$serveAddr = $input->getSameStringOpt('s,S,addr');
6363
if (!$serveAddr) {

src/BuiltIn/PharController.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,23 @@ protected function packConfigure(Input $input): void
6868
* @usage {fullCommand} [--dir DIR] [--output FILE] [...]
6969
*
7070
* @options
71-
* -d, --dir STRING Setting the project directory for packing.
72-
* default is current work-dir(default: <cyan>{workDir}</cyan>)
73-
* -c, --config STRING Use the custom config file for build phar(default: <cyan>./phar.build.inc</cyan>)
74-
* -o, --output STRING Setting the output file name(<cyan>{defaultPkgName}</cyan>)
75-
* --fast Fast build. only add modified files by <cyan>git status -s</cyan>
76-
* --refresh Whether build vendor folder files on phar file exists(<cyan>False</cyan>)
77-
* --files STRING Only pack the list files to the exist phar, multi use ',' split
78-
* --no-progress Disable output progress on the runtime
71+
* -d, --dir Setting the project directory for packing.
72+
* default is current work-dir(default: <cyan>{workDir}</cyan>)
73+
* -c, --config Use the custom config file for build phar(default: <cyan>./phar.build.inc</cyan>)
74+
* -o, --output Setting the output file name(<cyan>{defaultPkgName}</cyan>)
75+
* --fast bool;Fast build. only add modified files by <cyan>git status -s</cyan>
76+
* --refresh bool;Whether build vendor folder files on phar file exists(<cyan>False</cyan>)
77+
* --files Only pack the list files to the exist phar, multi use ',' split
78+
* --no-progress bool;Disable output progress on the runtime
7979
*
8080
* @param Input $input
8181
* @param Output $output
8282
*
8383
* @return int
8484
* @throws Exception
8585
* @example
86-
* {fullCommand} Pack current dir to a phar file.
87-
* {fullCommand} --dir vendor/swoft/devtool Pack the specified dir to a phar file.
86+
* {fullCommand} Pack current dir to a phar file.
87+
* {fullCommand} --dir vendor/swoft/devtool Pack the specified dir to a phar file.
8888
*
8989
* custom output phar file name
9090
* php -d phar.readonly=0 {binFile} phar:pack -o=mycli.phar
@@ -223,10 +223,10 @@ public function setCompilerConfiger(Closure $compilerConfiger): void
223223
* @usage {fullCommand} -f FILE [-d DIR]
224224
*
225225
* @options
226-
* -f, --file STRING The packed phar file path
227-
* -d, --dir STRING The output dir on extract phar package.
228-
* -y, --yes BOOL Whether display goon tips message.
229-
* --overwrite BOOL Whether overwrite exists files on extract phar
226+
* -f, --file The packed phar file path
227+
* -d, --dir The output dir on extract phar package.
228+
* -y, --yes bool;Whether display goon tips message.
229+
* --overwrite bool;Whether overwrite exists files on extract phar
230230
*
231231
* @param Input $in
232232
* @param Output $out

0 commit comments

Comments
 (0)