Skip to content

Commit

Permalink
Merge pull request #33 from Capitains/cmdlineinv
Browse files Browse the repository at this point in the history
add support for inventory as command line argument
  • Loading branch information
PonteIneptique committed Feb 24, 2016
2 parents 67a5f85 + ab2742b commit 02789f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_nemo/__init__.py
Expand Up @@ -1164,6 +1164,8 @@ def cmd():
help='Port to use for the HTTP Server')
parser.add_argument('--host', type=str, default="127.0.0.1",
help='Host to use for the HTTP Server')
parser.add_argument('--inventory', type=str, default=None,
help='Inventory to request from the endpoint')
parser.add_argument('--groupby', type=int, default=25,
help='Number of passage to group in the deepest level of the hierarchy')
parser.add_argument('--debug', action="store_true", default=False, help="Set-up the application for debugging")
Expand All @@ -1180,6 +1182,7 @@ def cmd():
app=app,
name="nemo",
base_url="",
inventory = args.inventory,
api_url=args.endpoint,
chunker={"default": lambda x, y: Nemo.level_grouper(x, y, groupby=args.groupby)}
)
Expand Down

0 comments on commit 02789f6

Please sign in to comment.