From: Michael Wallner Date: Tue, 24 Mar 2015 19:34:30 +0000 (+0100) Subject: consistent help messages X-Git-Tag: v3.0.0~17 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f4a6d7917282e5d31a56606ee3064f6a225d776c;p=pharext%2Fpharext consistent help messages --- diff --git a/bin/pharext b/bin/pharext index ab09749..ec47e3a 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index 10486d2..50c6e80 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -38,12 +38,14 @@ class Installer implements Command "sudo -S %s"], ["i", "ini", "Activate in this php.ini instead of loaded default php.ini", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::REQARG], - [null, "signature", "Dump package signature", + [null, "signature", "Show package signature", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT], [null, "license", "Show package license", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT], [null, "name", "Show package name", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT], + [null, "date", "Show package release date", + CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT], [null, "release", "Show package release version", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT], [null, "version", "Show pharext version", @@ -104,7 +106,7 @@ class Installer implements Command exit; } try { - foreach (["signature", "name", "license", "release", "version"] as $opt) { + foreach (["signature", "name", "date", "license", "release", "version"] as $opt) { if ($this->args[$opt]) { printf("%s\n", $this->metadata($opt)); exit; diff --git a/src/pharext/Packager.php b/src/pharext/Packager.php index 5194951..efd72b6 100644 --- a/src/pharext/Packager.php +++ b/src/pharext/Packager.php @@ -57,7 +57,7 @@ class Packager implements Command CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::REQARG], ["E", "zend", "Mark as Zend Extension", CliArgs::OPTIONAL|CliARgs::SINGLE|CliArgs::NOARG], - [null, "signature", "Dump pharext signature", + [null, "signature", "Show pharext signature", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT], [null, "license", "Show pharext license", CliArgs::OPTIONAL|CliArgs::SINGLE|CliArgs::NOARG|CliArgs::HALT],