bootstrap: virtual commands options
authorMichael Wallner <mike@php.net>
Fri, 16 Dec 2016 09:09:32 +0000 (10:09 +0100)
committerMichael Wallner <mike@php.net>
Fri, 20 Dec 2019 12:21:58 +0000 (13:21 +0100)
app/bootstrap/cli.php

index 8142fb11141b97e0fe94160fb9a433005885ef34..4582c3cc82fe2da7318fa4d395958d8017c08f21 100644 (file)
@@ -14,9 +14,7 @@ $injector->share(Cli::class);
 $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],
                ]
        ]);