url2markdown/url2markdown/cli.py

12 lines
322 B
Python
Raw Normal View History

2020-10-12 22:25:36 +02:00
import argparse
def cli():
parser = argparse.ArgumentParser()
parser.add_argument("URL",
help="The URL of the article to convert to Markdown.",
type=str)
parser.add_argument("--topics", help="A list of comma separated topics.")
return parser.parse_args()