From e9b7deb2482a1f42d8d5d297727d64598b680c59 Mon Sep 17 00:00:00 2001 From: Ziheng Sun Date: Tue, 15 Oct 2024 22:48:29 -0400 Subject: [PATCH] export should have the workflow as subcommand name --- pygeoweaver/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoweaver/__main__.py b/pygeoweaver/__main__.py index 6732e1f..3608007 100644 --- a/pygeoweaver/__main__.py +++ b/pygeoweaver/__main__.py @@ -188,9 +188,9 @@ def export_command(): pass -@export_command.command() +@export_command.command("workflow") @click.argument('workflow_id', type=str) -@click.option('--mode', default=4, type=int, help='Exportation mode options: 1 - workflow only, 2 - workflow with process code, 3 - workflow with process code and only good history, 4 - workflow with process code and all the history. Default option is 4.') +@click.option('--mode', default=4, type=int, help='Exportation mode options: \n1 - workflow only, 2 - workflow with process code, 3 - workflow with process code and only good history, 4 - workflow with process code and all the history. Default option is 4.') @click.argument('target_file_path', type=click.Path()) @click.option('--unzip', is_flag=True, help='Unzip the exported file.') @click.option('--unzip-directory-name', help='Specify the directory name when unzipping.')