24 lines
514 B
Python
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()
|