From 472d53596edd46488d5feabc82da9040a555f32c Mon Sep 17 00:00:00 2001 From: Dmitry Kalinin Date: Thu, 5 Aug 2021 17:19:42 +0300 Subject: [PATCH] Fixed task creating CLI parameter (#3519) * Fixed CLI parameter * Adjusted docs * Added CHANGELOG --- CHANGELOG.md | 2 +- site/content/en/docs/manual/advanced/cli.md | 2 +- utils/cli/core/definition.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c610dca1..80352fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- TDB +- Fixed task creating CLI parameter () ### Security diff --git a/site/content/en/docs/manual/advanced/cli.md b/site/content/en/docs/manual/advanced/cli.md index 2738cfce..1b2f5f3b 100644 --- a/site/content/en/docs/manual/advanced/cli.md +++ b/site/content/en/docs/manual/advanced/cli.md @@ -12,7 +12,7 @@ comprehensive CVAT administration tool in the future. Overview of functionality: -- Create a new task (supports name, bug tracker, labels JSON, local/share/remote files) +- Create a new task (supports name, bug tracker, project, labels JSON, local/share/remote files) - Delete tasks (supports deleting a list of task IDs) - List all tasks (supports basic CSV or JSON output) - Download JPEG frames (supports a list of frame IDs) diff --git a/utils/cli/core/definition.py b/utils/cli/core/definition.py index bab3cacb..daf174e7 100644 --- a/utils/cli/core/definition.py +++ b/utils/cli/core/definition.py @@ -113,7 +113,7 @@ task_create_parser.add_argument( help='string or file containing JSON labels specification' ) task_create_parser.add_argument( - '--project', + '--project_id', default=None, type=int, help='project ID if project exists'