some reworking

This commit is contained in:
SG
2025-06-07 13:17:51 +03:00
parent fc1ee27146
commit 1854366a9d
7 changed files with 183 additions and 74 deletions

11
argparser.py Normal file
View 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')