Skip to content

READMEのraw APIコマンド例が実際のCLI構文と一致しない #15

Description

@mimo-3

概要

READMEの例は notion api GET /v1/users/me ですが、実装ではHTTP methodは位置引数ではなく --method optionです。

該当箇所

  • README.md:70
  • src/cli/api.rs:10-16

再現

notion api GET /v1/users/me

clapがunexpected argumentとしてexit 2になります。

現実装に合う構文は次です。

notion api --method GET /v1/users/me

修正案

  • READMEの例を現実装へ合わせる、またはmethodを位置引数として受ける設計へ統一する
  • READMEの代表commandをCLI integration testで実行する

完了条件

  • README記載例がexit 0で動作する
  • helpとREADMEの構文が一致する
  • ドキュメント例の回帰テストがある

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions