-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90d8ec9
commit 5d08e17
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import argparse | ||
|
||
from ..utils.logger import logger | ||
from . import iiif, viewcones | ||
|
||
|
||
def main(): | ||
logger.info("Parsing arguments") | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"--mode", "-m", help="run mode", choices=["test", "prod"], default="test" | ||
) | ||
parser.add_argument("--index", "-i", nargs="+", help="index to run", default="all") | ||
parser.add_argument("--retile", "-r", action="store_true", default=False) | ||
args = parser.parse_args() | ||
if args.retile and args.index == "all": | ||
parser.error("The --retile option cannot be used together with --index='all'") | ||
viewcones.main() | ||
iiif.main(args) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |