some reworking
This commit is contained in:
11
argparser.py
Normal file
11
argparser.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import argparse
|
||||
from config import Config
|
||||
|
||||
argparser = argparse.ArgumentParser(
|
||||
prog = Config.APP_NAME,
|
||||
description = Config.APP_DESCRIPTION,
|
||||
epilog = f"See {Config.APP_SRC_URL} for more info.")
|
||||
|
||||
argparser.add_argument('--init', action='store_true', help = 'Initialize new site')
|
||||
argparser.add_argument('--content', '--edit', type = str, help = 'Create new content')
|
||||
argparser.add_argument('--build', action='store_true', help = 'Build the site')
|
||||
Reference in New Issue
Block a user