projects
/
pharext
/
pharext.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
d24d1fe
)
bootstrap: virtual commands options
author
Michael Wallner
<mike@php.net>
Fri, 16 Dec 2016 09:09:32 +0000
(10:09 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 20 Dec 2019 12:21:58 +0000
(13:21 +0100)
app/bootstrap/cli.php
patch
|
blob
|
history
diff --git
a/app/bootstrap/cli.php
b/app/bootstrap/cli.php
index 8142fb11141b97e0fe94160fb9a433005885ef34..4582c3cc82fe2da7318fa4d395958d8017c08f21 100644
(file)
--- a/
app/bootstrap/cli.php
+++ b/
app/bootstrap/cli.php
@@
-14,9
+14,7
@@
$injector->share(Cli::class);
$injector->share(Args::class)
->define(Args::class, [
":spec" => [
$injector->share(Args::class)
->define(Args::class, [
":spec" => [
- [null, "ngrok", "Run ngrok", Args::SINGLE],
- [null, "initdb", "Create database", Args::SINGLE],
- [null, "gen-models", "Generate pq\\Gateway models", Args::SINGLE],
+ [0, "command", "Command to run\n- ngrok: Run ngrok\n- initdb: Create database\n- gen-models: Generate pq\\Gatweay models", Args::SINGLE|Args::REQUIRED],
["h", "help", "Show this help", Args::HALT],
]
]);
["h", "help", "Show this help", Args::HALT],
]
]);