Skip to content
Snippets Groups Projects
Commit 51b8f978 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Fix for issue #519, metarefresh --help message improved.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3200 44740490-163a-0410-bde0-09ae8108e29a
parent 21b6a339
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ foreach($argv as $a) { ...@@ -95,7 +95,7 @@ foreach($argv as $a) {
echo('Please run `' . $progName . ' --help` for usage information.' . "\n"); echo('Please run `' . $progName . ' --help` for usage information.' . "\n");
exit(1); exit(1);
} }
$outputDir = $baseDir . $v; $outputDir = $baseDir . ($v[0] == '/' ? $v : '/' . $v);
break; break;
case '--stdout': case '--stdout':
$toStdOut = TRUE; $toStdOut = TRUE;
...@@ -145,13 +145,15 @@ function printHelp() { ...@@ -145,13 +145,15 @@ function printHelp() {
echo('be added to the metadata files in metadata/.' . "\n"); echo('be added to the metadata files in metadata/.' . "\n");
echo("\n"); echo("\n");
echo('Options:' . "\n"); echo('Options:' . "\n");
echo(' --validate-fingerprint=<FINGERPRINT>' . "\n"); echo(' --validate-fingerprint=<FINGERPRINT>' . "\n");
echo(' Check the signature of the metadata,' . "\n"); echo(' Check the signature of the metadata,' . "\n");
echo(' and check the fingerprint of the' . "\n"); echo(' and check the fingerprint of the' . "\n");
echo(' certificate against <FINGERPRINT>.' . "\n"); echo(' certificate against <FINGERPRINT>.' . "\n");
echo(' -h, --help Print this help.' . "\n"); echo(' -h, --help Print this help.' . "\n");
echo(' -o=<DIR>, --out-dir=<DIR> Write the output to this directory. The' . "\n"); echo(' -o=<DIR>, --out-dir=<DIR> Write the output to this directory. The' . "\n");
echo(' default directory is metadata-generated/' . "\n"); echo(' default directory is metadata-generated/.' . "\n");
echo(' Path will be relative to the simpleSAMLphp' . "\n");
echo(' base directory.' . "\n");
echo(' -s, --stdout Write the output to stdout instead of' . "\n"); echo(' -s, --stdout Write the output to stdout instead of' . "\n");
echo(' seperate files in the output directory.' . "\n"); echo(' seperate files in the output directory.' . "\n");
echo("\n"); echo("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment