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
514 B
Python

import argparse
from bebop.browser import Browser
from bebop.tofu import load_cert_stash
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")
Browser(cert_stash).run(start_url=start_url)
main()