This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
Bebop/bebop/__main__.py

24 lines
511 B
Python
Raw Normal View History

2021-02-12 19:01:42 +01:00
import argparse
from bebop.tofu import load_cert_stash
from bebop.screen import Screen
def main():
argparser = argparse.ArgumentParser()
argparser.add_argument("url", default=None)
args = argparser.parse_args()
if args.url:
start_url = args.url
if not start_url.startswith("gemini://"):
start_url = "gemini://" + start_url
else:
start_url = None
cert_stash = load_cert_stash("/tmp/stash")
Screen(cert_stash).run(start_url=start_url)
main()