Skip to content

Commit

Permalink
Smarter exception handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Aug 23, 2017
1 parent c598b36 commit 4049f7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions install.php
Expand Up @@ -43,26 +43,26 @@
try {
$opts = new Getopt(
array(
'use-defaults' =>
'use-defaults' =>
'Use VuFind Defaults to Configure (ignores any other arguments passed)',
'overridedir=s' =>
'overridedir=s' =>
"Where would you like to store your local settings? [{$baseDir}/local]",
'module-name=s' =>
'module-name=s' =>
'What module name would you like to use? Use disabled, to not use',
'basepath=s' =>
'basepath=s' =>
'What base path should be used in VuFind\'s URL? [/vufind]',
'multisite-w' =>
'multisite-w' =>
'Specify we are going to setup a multisite. Options: directory and host',
'hostname=s' =>
'hostname=s' =>
'Specify the hostname for the VuFind Site, When multisite=host',
'non-interactive' =>
'Use settings if provided via arguments, otherwise use defaults',
)
);

$opts->parse();
} catch (Exception $e) {
echo $e->getUsageMessage();
echo is_callable([$e, 'getUsageMessage'])
? $e->getUsageMessage() : $e->getMessage() . "\n";
exit;
}

Expand Down

0 comments on commit 4049f7e

Please sign in to comment.