diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www index 378fc549..3e310b68 100755 --- a/scripts/deploy-ebook-to-www +++ b/scripts/deploy-ebook-to-www @@ -391,7 +391,7 @@ do printf "Updating/inserting ebook in database ... " fi - "${scriptsDir}"/update-ebook-database --ebookWwwFilesystemPath "${webDir}" + "${scriptsDir}"/update-ebook-database --ebook-www-filesystem-path "${webDir}" if [ "${verbose}" = "true" ]; then printf "Done.\n" diff --git a/scripts/update-ebook-database b/scripts/update-ebook-database index b4057143..7cb69f3c 100755 --- a/scripts/update-ebook-database +++ b/scripts/update-ebook-database @@ -4,10 +4,10 @@ require_once('/standardebooks.org/web/lib/Core.php'); use function Safe\getopt; -$longopts = ['ebookWwwFilesystemPath:', 'verbose']; +$longopts = ['ebook-www-filesystem-path:', 'verbose']; $options = getopt('v', $longopts); -$ebookWwwFilesystemPath = $options['ebookWwwFilesystemPath'] ?? null; +$ebookWwwFilesystemPath = $options['ebook-www-filesystem-path'] ?? null; $verbose = false; if(isset($options['v']) || isset($options['verbose'])){ @@ -15,12 +15,12 @@ if(isset($options['v']) || isset($options['verbose'])){ } if($ebookWwwFilesystemPath === null){ - print("Expected usage: update-ebook-database [-v,--verbose] --ebookWwwFilesystemPath \n"); + print("Expected usage: update-ebook-database [-v,--verbose] --ebook-www-filesystem-path \n"); exit(1); } if($verbose){ - print("ebookWwwFilesystemPath: $ebookWwwFilesystemPath\n"); + print("ebook-www-filesystem-path: $ebookWwwFilesystemPath\n"); } try{