mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Rename flag to --ebook-www-filesystem-path
This commit is contained in:
parent
627f90c0e2
commit
7253ad41ca
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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 <path>\n");
|
||||
print("Expected usage: update-ebook-database [-v,--verbose] --ebook-www-filesystem-path <path>\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if($verbose){
|
||||
print("ebookWwwFilesystemPath: $ebookWwwFilesystemPath\n");
|
||||
print("ebook-www-filesystem-path: $ebookWwwFilesystemPath\n");
|
||||
}
|
||||
|
||||
try{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue