Skip to content

Restore launching from app bundle on macos - #2505

Merged
AucaCoyan merged 1 commit into
espanso:devfrom
n8henrie:dev
Oct 5, 2025
Merged

AucaCoyan merged 1 commit into
espanso:devfrom
n8henrie:dev

Conversation

@n8henrie

@n8henrie n8henrie commented Oct 5, 2025

Copy link
Copy Markdown
Collaborator

When launching from app bundle on macos a subcommand is not specified.

Consequently, setting arg_required_else_help(true) results in
ErrorKind::DisplayHelpOnMissingArgumentOrSubcommand.

Instead of trying to match on this specific error only on macos, it's
simpler to revert to prior behavior of managing this ourselves instead
of relying on clap.

Fixes #2444

Likely fixes #2475

When launching from app bundle on macos a subcommand is not specified.

Consequently, setting `arg_required_else_help(true)` results in
`ErrorKind::DisplayHelpOnMissingArgumentOrSubcommand`.

Instead of trying to match on this specific error only on macos, it's
simpler to revert to prior behavior of managing this ourselves instead
of relying on `clap`.

Fixes espanso#2444

Likely fixes espanso#2475
@AucaCoyan

Copy link
Copy Markdown
Collaborator

Hi! Thank you for fixing this! I was on the path but 7 steps slower than you 😄 .

I reviewed with a lot of commands and this is perfect!

@AucaCoyan
AucaCoyan merged commit ad4aea4 into espanso:dev Oct 5, 2025
sboldt1978 pushed a commit to sboldt1978/espanso that referenced this pull request Feb 11, 2026
When launching from app bundle on macos a subcommand is not specified.

Consequently, setting `arg_required_else_help(true)` results in
`ErrorKind::DisplayHelpOnMissingArgumentOrSubcommand`.

Instead of trying to match on this specific error only on macos, it's
simpler to revert to prior behavior of managing this ourselves instead
of relying on `clap`.

Fixes espanso#2444

Likely fixes espanso#2475
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.

Unable to install espanso on mac Tahoe macos: espanso 2.3.0 does not start from the app bundle

2 participants