mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Path is an optional argument on the command line, since it can be a setting in the configuration file
This commit is contained in:
parent
d484517555
commit
ca58928b6c
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ class Pelican(object):
|
||||||
before doing anything else.
|
before doing anything else.
|
||||||
"""
|
"""
|
||||||
self.path = path or settings['PATH']
|
self.path = path or settings['PATH']
|
||||||
if self.path.endswith('/'):
|
if path or self.path.endswith('/'):
|
||||||
self.path = path[:-1]
|
self.path = path[:-1]
|
||||||
|
|
||||||
# define the default settings
|
# define the default settings
|
||||||
|
|
@ -90,7 +90,7 @@ def main():
|
||||||
parser = argparse.ArgumentParser(description="""A tool to generate a
|
parser = argparse.ArgumentParser(description="""A tool to generate a
|
||||||
static blog, with restructured text input files.""")
|
static blog, with restructured text input files.""")
|
||||||
|
|
||||||
parser.add_argument(dest='path',
|
parser.add_argument(dest='path', nargs='?',
|
||||||
help='Path where to find the content files')
|
help='Path where to find the content files')
|
||||||
parser.add_argument('-t', '--theme-path', dest='theme',
|
parser.add_argument('-t', '--theme-path', dest='theme',
|
||||||
help='Path where to find the theme templates. If not specified, it will'
|
help='Path where to find the theme templates. If not specified, it will'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue