summaryrefslogtreecommitdiff
path: root/cli/commands/site/export.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/commands/site/export.py')
-rw-r--r--cli/commands/site/export.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/commands/site/export.py b/cli/commands/site/export.py
index 68773e9..78e7228 100644
--- a/cli/commands/site/export.py
+++ b/cli/commands/site/export.py
@@ -8,8 +8,10 @@ from app.site.export import export_site
help='Graph name')
@click.option('-o', '--output', 'opt_output_dir', required=True, default=app_cfg.DIR_EXPORTS,
help='Output dir')
+@click.option('-j', '--js/--no-js', 'opt_js', required=False, default=False,
+ help='Whether to rebuild the Javascript bundle')
@click.pass_context
-def cli(ctx, opt_graph_path, opt_output_dir):
+def cli(ctx, opt_graph_path, opt_output_dir, opt_build_js):
"""Export a graph"""
- export_site(opt_graph_path, opt_output_dir) \ No newline at end of file
+ export_site(opt_graph_path, opt_output_dir, opt_build_js) \ No newline at end of file