aboutsummaryrefslogtreecommitdiffstats
path: root/gsxcl
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-05-11 18:01:30 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-05-11 18:01:30 +0300
commit0f153b0097e373448c5830ad67fcbfeea8ce5f2a (patch)
tree59607c16b9ffcd6dd30edebf69eac904de6dc887 /gsxcl
parentfe0bccf27629732168a91310e926840300e3aa79 (diff)
downloadgsxlib-0f153b0097e373448c5830ad67fcbfeea8ce5f2a.tar.gz
gsxlib-0f153b0097e373448c5830ad67fcbfeea8ce5f2a.tar.bz2
gsxlib-0f153b0097e373448c5830ad67fcbfeea8ce5f2a.zip
minor tweaks
Diffstat (limited to 'gsxcl')
-rwxr-xr-xgsxcl11
1 files changed, 6 insertions, 5 deletions
diff --git a/gsxcl b/gsxcl
index af5aeea..6902d3c 100755
--- a/gsxcl
+++ b/gsxcl
@@ -26,19 +26,20 @@ require 'gsxlib.php';
if (count($argv) < 6) {
echo <<<EOT
-usage: gsxcl -s sold-to -u username -p password [-r region] [-e environment] [-f format] [-m warranty|parts] [-q query]
+usage: gsxcl -s sold-to -u username -p password [-r region] [-e environment] [-f format] [-m mode] [-q query]
-s sold-to your GSX Sold-To account
-u username the Apple ID with GSX WS API access
-p password the password for the Apple ID
- -r region either "am" (America), "emea" (Europe, Middle-East, Africa)
- "apac" (Asia-Pacific) or "la" (Latin America). Defaults to "emea".
+ -r region either "am" (America), "emea" (default, Europe, Middle-East, Africa)
+ "apac" (Asia-Pacific) or "la" (Latin America)
-e environment the GSX environment. Either empty (production), "it" or "ut"
Defaults to production
-f format the output format. Either print_r (default), json, xml or csv
- -m mode what to search for. Currently one of: {$modes_str}. Defaults to "warranty"
+ -m mode what to search for. Currently one of: {$modes_str}.
+ Defaults to "warranty"
-q query a query string (serial number, order confirmation, repair number, EEE code, etc
Defaults to this machine's serial number
-
+
EOT;
exit();
}