Skip to content

Move program name from main! args to Env.program_name! - #494

Merged
lukewilliamboswell merged 1 commit into
roc-lang:mainfrom
ageron:separate-prog-name-for-main-args
Sep 10, 2026
Merged

lukewilliamboswell merged 1 commit into
roc-lang:mainfrom
ageron:separate-prog-name-for-main-args

Conversation

@ageron

@ageron ageron commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This PR removes the first argument from the main! args, which corresponds to the program name. This allows basic-cli to match the behavior of the default (echo) platform.

The program name is now available via Env.program_name!

See this Zulip discussion: #ideas > Args list in basic-cli platform vs default platform

@lukewilliamboswell
lukewilliamboswell merged commit d25c045 into roc-lang:main Sep 10, 2026
24 checks passed
@ageron
ageron deleted the separate-prog-name-for-main-args branch September 10, 2026 05:58
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.

2 participants