mun icon indicating copy to clipboard operation
mun copied to clipboard

Is `--entry` NOT to be passed while running?

Open freakynit opened this issue 10 months ago • 2 comments

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?

freakynit avatar Feb 13 '25 06:02 freakynit

Did you try the recommendation to run:

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

?

Wodann avatar Feb 20 '25 17:02 Wodann

@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.

freakynit avatar Feb 21 '25 03:02 freakynit