Skip to content
Permalink
Browse files

updates to argument descriptions

  • Loading branch information...
shawnmjones committed May 3, 2019
1 parent 689105e commit 8ecfff6e0b3d3b785d049ef6e7d36bdf19274601
Showing with 10 additions and 6 deletions.
  1. +10 −5 bin/raintale_cmd
  2. +0 −1 raintale/storytellers.py
@@ -49,7 +49,7 @@ def calculate_loglevel(verbose=False, quiet=False):
def process_arguments(args):

parser = argparse.ArgumentParser(prog="{}".format(args[0]),
description='Given a list of story elements, including URLs to archived web pages, raintale publishes them to a specified service.',
description='Given a list of story elements, including URLs to archived web pages, raintale publishes them to the specified service.',
formatter_class=RawTextHelpFormatter
)

@@ -75,7 +75,7 @@ def process_arguments(args):
)

parser.add_argument('--title', dest='title',
required=False,
required=True,
help="The title used for the story."
)

@@ -153,9 +153,14 @@ def gather_credentials(storyteller, credentials_file, output_filename):
credentials_json = {}

if credentials_file is None:
credentials_json = {
"output_filename": output_filename
}

if output_filename is not None:
credentials_json = {
"output_filename": output_filename
}
else:
logger.error("No credentials and no output file. Cannot continue...")
sys.exit(errno.EINVAL)
else:

with open(credentials_file) as f:
@@ -320,7 +320,6 @@ def tell_story(self):

module_logger.info("blog post should be available at {}".format(r['url']))


storytellers = {
"rawhtml": RawHTMLStoryTeller,
"twitter": TwitterStoryTeller,

0 comments on commit 8ecfff6

Please sign in to comment.
You can’t perform that action at this time.