8000 コマンド別の引数表示 · Issue #5 · frugalos/kanils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
コマンド別の引数表示 #5
Open
@yuezato

Description

@yuezato

現状の問題点

現在のKaNiLSでは、コマンド毎に必要な(コマンドライン)引数を場合分けして表示していない。
例えば、

$ kanils Open
error: The following required arguments were not provided:
    --storage <storage_path>

$ kanils Get
error: The following required arguments were not provided:
    --storage <storage_path>

と出力されるのみで、どの引数が必要なのか何も分からない。

どう変更したいか

以下のように変えたい

$ kanils Open
error: the Open command requires the following arguments:
  --storage <storage_path>
$ kanils Get
error: the Get command requires the following arguments:
  --storage <storage_path>
  --key <lump_id>

手段

現在のコマンドライン引数解析は structopt を用いているが、必要であれば別途コマンドライン引数解析用のライブラリを開発する。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0