Skip to content

Replace Thor CLI with optparse to align with Crystal CLI#18

Merged
antondalgren merged 1 commit intomainfrom
align-cli-with-crystal
Mar 10, 2026
Merged

Replace Thor CLI with optparse to align with Crystal CLI#18
antondalgren merged 1 commit intomainfrom
align-cli-with-crystal

Conversation

@antondalgren
Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

To align CLI interface.

WHAT is this pull request doing?

Use stdlib optparse instead of Thor, matching the Crystal client's CLI interface. Subcommands are now send (was auth) and connect, with flag-based options (-h, -p, -c) instead of positional args. Connect reuses send's option parser and adds --tcp-port. Drops the thor dependency.

HOW was this pull request tested?

Specs? Manual steps? Please fill me in.

Use stdlib optparse instead of Thor, matching the Crystal client's CLI
interface. Subcommands are now `send` (was `auth`) and `connect`, with
flag-based options (-h, -p, -c) instead of positional args. Connect
reuses send's option parser and adds --tcp-port. Drops the thor
dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@antondalgren antondalgren requested a review from a team as a code owner March 10, 2026 13:23
Copy link
Copy Markdown
Member

@baelter baelter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve, would also approve removing it :)

@antondalgren antondalgren merged commit 5995145 into main Mar 10, 2026
8 checks passed
@antondalgren antondalgren deleted the align-cli-with-crystal branch March 10, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants