mun
mun copied to clipboard
Is `--entry` NOT to be passed while running?
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?
Did you try the recommendation to run:
mun start target/mod.munlib -- --entry fibonacci_n
?
@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.