mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-16 05:49:59 -05:00
14732e9850
Also add newline before pause prompt
17 lines
408 B
Python
17 lines
408 B
Python
from caelestia.parser import parse_args
|
|
from caelestia.utils.io import log
|
|
from caelestia.utils.version import print_version
|
|
|
|
|
|
def main() -> None:
|
|
try:
|
|
parser, args = parse_args()
|
|
if args.version:
|
|
print_version()
|
|
elif "cls" in args:
|
|
args.cls(args).run()
|
|
else:
|
|
parser.print_help()
|
|
except KeyboardInterrupt:
|
|
log("Exiting...")
|