Add argument parse and base directory
This commit is contained in:
parent
9616a1b514
commit
be105821d9
|
|
@ -4,5 +4,12 @@ import argparse
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def launcher():
|
def launcher():
|
||||||
print(sys.argv)
|
parser = argparse.ArgumentParser(
|
||||||
asyncio.run(main())
|
prog="MarkdownPreviewer",
|
||||||
|
description="Server to allow live rendering of markdown")
|
||||||
|
|
||||||
|
parser.add_argument('--base', help="base directoy of the server")
|
||||||
|
|
||||||
|
result = parser.parse_args()
|
||||||
|
|
||||||
|
asyncio.run(main(result.base))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user