Zulip Chat Archive
Stream: lean4
Topic: lake scripts with args
Arthur Paulino (Jan 15 2022 at 19:01):
I'm trying to run a lake
script with arguments. My script starts with
script kcompile (args) do
...
When I hover args
it indeed says List String
, but when I call lake run kcompile arg1 arg2
it says:
error: unexpected arguments: arg1 arg2
Is this feature still WIP?
Henrik Böving (Jan 15 2022 at 19:03):
maybe it expects you do do lake run kcompile -- arg1 arg2
?
Arthur Paulino (Jan 15 2022 at 19:04):
Ah, that works! But it's different form what's said here
Henrik Böving (Jan 15 2022 at 19:05):
@Mac is this intended?
Mac (Jan 15 2022 at 19:27):
lake run
was upgraded into lake script run
which has a slightly different syntax (but that change had yet to be merged into the Lake of Lean).
Last updated: Dec 20 2023 at 11:08 UTC