From 95f03d6be4bac749fcee6d8820e94cc217c152cd Mon Sep 17 00:00:00 2001 From: Mansoor Baba Shaik Date: Sat, 10 Oct 2020 01:28:47 -0400 Subject: [PATCH] feat(sdk): Adds missing short options to the cli (#4604) --- sdk/python/kfp/cli/experiment.py | 2 ++ sdk/python/kfp/cli/pipeline.py | 1 + sdk/python/kfp/cli/run.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/python/kfp/cli/experiment.py b/sdk/python/kfp/cli/experiment.py index 92719996e2f..a6151c7e52e 100644 --- a/sdk/python/kfp/cli/experiment.py +++ b/sdk/python/kfp/cli/experiment.py @@ -11,6 +11,7 @@ def experiment(): @experiment.command() @click.option( + '-d', '--description', help="Description of the experiment." ) @@ -27,6 +28,7 @@ def create(ctx, description, name): @experiment.command() @click.option( + '-m', '--max-size', default=100, help="Max size of the listed experiments." diff --git a/sdk/python/kfp/cli/pipeline.py b/sdk/python/kfp/cli/pipeline.py index 7051b6897c4..02e556c6165 100644 --- a/sdk/python/kfp/cli/pipeline.py +++ b/sdk/python/kfp/cli/pipeline.py @@ -76,6 +76,7 @@ def upload_version(ctx, package_file, pipeline_version, pipeline_id): @pipeline.command() @click.option( + "-m", "--max-size", default=100, help="Max size of the listed pipelines." diff --git a/sdk/python/kfp/cli/run.py b/sdk/python/kfp/cli/run.py index 23f577914de..bc3cc5f923e 100644 --- a/sdk/python/kfp/cli/run.py +++ b/sdk/python/kfp/cli/run.py @@ -29,7 +29,7 @@ def run(): @run.command() @click.option('-e', '--experiment-id', help='Parent experiment ID of listed runs.') -@click.option('--max-size', default=100, help='Max size of the listed runs.') +@click.option('-m', '--max-size', default=100, help='Max size of the listed runs.') @click.pass_context def list(ctx, experiment_id, max_size): """list recent KFP runs"""