Skip to content

Commands with flags fail when .basecamp.yml provides project_id #3

@rmmcgr

Description

@rmmcgr

When .basecamp.yml is present, commands that include flags like --column get confused about which argument is the board/card ID vs a project ID override.

Example:

.basecamp.yml has project_id: 12345678

basecamp cards 5437262823 --column "Triage"
Returns 404 - board_id is mistakenly treated as a project_id override

Without the --column flag it works fine. The issue is that getProjectID counts all args (including flags) when deciding whether the first arg is a project_id override.

Workaround: Omit the project_id from .basecamp.yml and pass it explicitly.

I've got a fix for this locally. Happy to submit a PR if you're open to it.

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