16def get_args():
17 parser = argparse.ArgumentParser()
18 parser.add_argument("app_name", type=str,
19 help="Name of application (posts to collection of this name)")
20 parser.add_argument("--app-data", dest="app_data", type=str, default=None,
21 help="Path to app data file containing json")
22 parser.add_argument("--dry-run", dest="dry_run", action="store_true", default=False,
23 help="don't actually post")
24 parser.add_argument("--logger-filepath", dest="logger_filepath", default="", type=str,
25 help="Directory pointing to path where log file will be written " + \
26 "only directory path is accepted at this time")
27 parser.add_argument("--logger-stream", dest="logger_stream", action="store_true", default=False,
28 help="Enable stream output to stdout")
29 return parser.parse_args()
30
31