add the cli functionality

This commit is contained in:
Andreas Zweili 2020-10-12 22:25:36 +02:00
parent ce90dce9b6
commit e562dc61d0
1 changed files with 11 additions and 0 deletions

11
url2markdown/cli.py Normal file
View File

@ -0,0 +1,11 @@
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()