Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is --entry NOT to be passed while running? #583

Open
freakynit opened this issue Feb 13, 2025 · 2 comments
Open

Is --entry NOT to be passed while running? #583

freakynit opened this issue Feb 13, 2025 · 2 comments

Comments

@freakynit
Copy link

Was trying basic fibonacci example from official docs. Tried running with --entry:

mun start target/mod.munlib --entry fibonacci_n
error: unexpected argument '--entry' found

  tip: to pass '--entry' as a value, use '-- --entry'

Usage: mun start <LIBRARY|ENTRY>

For more information, try '--help'.

But when tried without --entry:

mun start target/mod.munlib fibonacci_n
5

Am I missing anything here?

@Wodann
Copy link
Collaborator

Wodann commented Feb 20, 2025

Did you try the recommendation to run:

mun start target/mod.munlib -- --entry fibonacci_n

?

@freakynit
Copy link
Author

@Wodann

mun start target/mod.munlib --entry fibonacci_n

This^ is from the official hello fibonacci doc page (https://docs.mun-lang.org/ch01-02-hello-fibonacci/)... the first page that almost 100% of the folks will be referring to...

I believe if what you suggested is the way to run it, it should probably be updated in this page.

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

No branches or pull requests

2 participants