mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 12:26:39 -04:00
Set ebookWwwFilesystemPath default to null
This commit is contained in:
parent
8599dfcc09
commit
1e0d591066
1 changed files with 4 additions and 2 deletions
|
@ -2,17 +2,19 @@
|
|||
<?
|
||||
require_once('/standardebooks.org/web/lib/Core.php');
|
||||
|
||||
use function Safe\getopt;
|
||||
|
||||
$longopts = ['ebookWwwFilesystemPath:', 'verbose'];
|
||||
$options = getopt('v', $longopts);
|
||||
|
||||
$ebookWwwFilesystemPath = $options['ebookWwwFilesystemPath'] ?? false;
|
||||
$ebookWwwFilesystemPath = $options['ebookWwwFilesystemPath'] ?? null;
|
||||
|
||||
$verbose = false;
|
||||
if(isset($options['v']) || isset($options['verbose'])){
|
||||
$verbose = true;
|
||||
}
|
||||
|
||||
if(!$ebookWwwFilesystemPath){
|
||||
if($ebookWwwFilesystemPath === null){
|
||||
print("Expected usage: update-ebook-database [-v,--verbose] --ebookWwwFilesystemPath <path>\n");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue