diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 16:20:58 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 16:20:58 -0400 |
commit | 0c3bfc2212ef74cacac73e670ff063124bd67af5 (patch) | |
tree | 722d108f1012c73817cf9eb045fef87489bd88b3 /scripts/commandline.inc | |
parent | 47e1d2adb87ae8ffa4c954d3ba62da64e986696c (diff) | |
parent | a4d0f22b4b2907134779d7710f967c4841f6f938 (diff) |
Merge branch '0.8.x' of jill@xmpp001.controlezvous.ca:/opt/local/share/laconica into 0.8.x
Diffstat (limited to 'scripts/commandline.inc')
-rw-r--r-- | scripts/commandline.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/commandline.inc b/scripts/commandline.inc index 8c5c56d5e..9c6787cb7 100644 --- a/scripts/commandline.inc +++ b/scripts/commandline.inc @@ -63,7 +63,14 @@ if (isset($longoptions)) { $parser = new Console_Getopt(); -list($options, $args) = $parser->getopt($argv, $shortoptions, $longoptions); +$result = $parser->getopt($argv, $shortoptions, $longoptions); + +if (PEAR::isError($result)) { + print $result->getMessage()."\n"; + exit(1); +} else { + list($options, $args) = $result; +} function show_help() { |