annotation_specs reorder_attributes#

Description#

アノテーション仕様のラベル内の属性を並び替えます。

Examples#

ラベル名と属性名を指定して並び替える#

以下のコマンドは、"car" ラベルに含まれる "unclear", "link" 属性をこの順番で先頭に移動します。 その他の属性は現在の順番を維持して、"unclear", "link" の後ろに並びます。

$ annofabcli annotation_specs reorder_attributes \
 --project_id prj1 \
 --label_name_en car \
 --attribute_name_en unclear link

ラベルIDと属性IDを指定して並び替える#

$ annofabcli annotation_specs reorder_attributes \
 --project_id prj1 \
 --label_id label_car \
 --attribute_id attribute_unclear attribute_link

Usage Details#

アノテーション仕様のラベル内の属性を並び替えます。

usage: annofabcli annotation_specs reorder_attributes [-h] [--yes]
                                                      [--endpoint_url ENDPOINT_URL]
                                                      [--annofab_user_id ANNOFAB_USER_ID]
                                                      [--annofab_password ANNOFAB_PASSWORD]
                                                      [--annofab_pat ANNOFAB_PAT]
                                                      [--logdir LOGDIR]
                                                      [--disable_log]
                                                      [--debug] -p PROJECT_ID
                                                      (--label_name_en LABEL_NAME_EN | --label_id LABEL_ID)
                                                      (--attribute_name_en ATTRIBUTE_NAME_EN [ATTRIBUTE_NAME_EN ...] | --attribute_id ATTRIBUTE_ID [ATTRIBUTE_ID ...])
                                                      [--comment COMMENT]

Named Arguments#

-p, --project_id

対象のプロジェクトのproject_idを指定します。

--label_name_en

属性を並び替える対象ラベルの英語名。

--label_id

属性を並び替える対象ラベルのlabel_id。

--attribute_name_en

先頭に移動する属性の英語名。複数指定した場合は、指定した順番で先頭に移動します。指定しなかった属性は現在の順番を維持します。 file:// を先頭に付けると一覧ファイルを指定できます。

--attribute_id

先頭に移動する属性のattribute_id。複数指定した場合は、指定した順番で先頭に移動します。指定しなかった属性は現在の順番を維持します。 file:// を先頭に付けると一覧ファイルを指定できます。

--comment

アノテーション仕様の変更内容を説明するコメント。未指定の場合、自動でコメントが生成されます。

global optional arguments#

--yes

処理中に現れる問い合わせに対して、常に yes と回答します。

--endpoint_url

Annofab WebAPIのエンドポイントを指定します。

Default: 'https://annofab.com'

--annofab_user_id

Annofabにログインする際のユーザーID

--annofab_password

Annofabにログインする際のパスワード

--annofab_pat

Annofabにログインする際のパーソナルアクセストークン

--logdir

ログファイルを保存するディレクトリを指定します。

Default: .log

--disable_log

ログを無効にします。

--debug

HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。