Skip to content

Commit 0350a91

Browse files
committed
refactor: remove some not used intpu methods
1 parent 9285fe0 commit 0350a91

File tree

8 files changed

+881
-313
lines changed

8 files changed

+881
-313
lines changed

examples/Controller/HomeController.php

+5-8
Original file line numberDiff line numberDiff line change
@@ -495,19 +495,16 @@ public function paddingCommand(): void
495495
/**
496496
* a example for use arguments on command
497497
*
498-
* @usage home:useArg [arg1=val1 arg2=arg2] [options]
498+
* @usage home useArg [arg1=val1 arg2=arg2] [options]
499499
*
500500
* @example
501-
* home:useArg status=2 name=john arg0 -s=test --page=23 -d -rf --debug --test=false -a v1 --ab -c -g --cd val -h '' -i stat=online
502-
* home:useArg status=2 name=john name=tom name=jack arg0 -s=test --page=23 --id=23 --id=154 --id=456 -d -rf --debug --test=false
501+
* home useArg status=2 name=john arg0 -s=test --page=23 -d -rf --debug --test=false -a v1 --ab -c -g --cd val -h '' -i stat=online
502+
* home useArg status=2 name=john name=tom name=jack arg0 -s=test --page=23 --id=23 --id=154 --id=456 -d -rf --debug --test=false
503503
*/
504504
public function useArgCommand(): void
505505
{
506-
$this->write('input arguments:');
507-
$this->output->dump($this->input->getArgs());
508-
509-
$this->write('input options:');
510-
$this->output->dump($this->input->getOpts());
506+
$this->write('input flags:');
507+
$this->output->dump($this->input->getFlags());
511508

512509
$this->write('raw argv:');
513510
$this->output->dump($this->input->getTokens());

0 commit comments

Comments
 (0)