updates
This commit is contained in:
13
argparser.py
13
argparser.py
@@ -6,6 +6,13 @@ argparser = argparse.ArgumentParser(
|
||||
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')
|
||||
subparsers = argparser.add_subparsers(dest='command', required=True)
|
||||
|
||||
#argparser.add_argument('--init', action='store_true', help = 'Initialize new site')
|
||||
#argparser.add_argument('--content', '--edit', type = str, help = 'Create new content')
|
||||
subparsers.add_parser('init', help = 'Initialize new site.')
|
||||
subparsers.add_parser('build', help = "Build the site from existing content.")
|
||||
new_content = subparsers.add_parser('create', aliases = ['new'], help = "Create a new content file.")
|
||||
new_content.add_argument('filename', type=str, help = "Name of the content file to create.")
|
||||
edit_content = subparsers.add_parser('edit', help = "Edit a content file.")
|
||||
edit_content.add_argument('filename', type=str, help = "Name of the content file to edit.")
|
||||
|
||||
Reference in New Issue
Block a user