consistent help messages
authorMichael Wallner <mike@php.net>
Tue, 24 Mar 2015 19:34:30 +0000 (20:34 +0100)
committerMichael Wallner <mike@php.net>
Tue, 24 Mar 2015 19:34:30 +0000 (20:34 +0100)
bin/pharext
src/pharext/Installer.php
src/pharext/Packager.php

index ab09749d7e0a67da7726820110b5d8d721279faf..ec47e3a14a1c8cfa244ec1c50c919297e7060920 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index 10486d2d69ceb0b9293c7abe1b1d8b3e982c2481..50c6e803df05645ebd2c993027e6bb743d3ff446 100644 (file)
@@ -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;
index 5194951dbad5cd3ec28debb5d18f387017af0ad0..efd72b657913327f74c9360280f506a1ba8946b2 100644 (file)
@@ -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],