ModernOSWeather/src/main.py

12 lines
252 B
Python
Raw Normal View History

from installer import install
from server import weather_run
import argparse
2024-09-09 10:01:44 +03:00
2024-10-09 17:13:41 +03:00
flags = argparse.ArgumentParser()
flags.add_argument("--install", "-i", action="store_true")
args = flags.parse_args()
if args.install:
install()
2024-10-11 09:37:34 +03:00
else:
weather_run()