2023-11-09 12:23:05 +01:00
|
|
|
import argparse
|
|
|
|
|
2023-11-22 19:27:09 +01:00
|
|
|
from quacc.main import main as run_local
|
|
|
|
from remote import remote as run_remote
|
2023-11-09 12:23:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
def run():
|
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
parser.add_argument("-l", "--local", action="store_true", dest="local")
|
|
|
|
parser.add_argument("-r", "--remote", action="store_true", dest="remote")
|
2023-11-22 19:27:09 +01:00
|
|
|
parser.add_argument("-d", "--detatch", action="store_true", dest="detatch")
|
2023-11-09 12:23:05 +01:00
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
if args.local:
|
|
|
|
run_local()
|
|
|
|
elif args.remote:
|
2023-11-22 19:27:09 +01:00
|
|
|
run_remote(detatch=args.detatch)
|