Bug: surreal start --allow-funcs <path>
will use <path>
as the value for the argument
#3965
Open
2 tasks done
Labels
Describe the bug
If I run:
I want start surreal with file storage allowing all funcs, but surreal starts with memory storage.
Steps to reproduce
Finally I found the root cause.
surreal start -h
prints:It says
--allow-funcs
accepts zero or one argument. zero argument means allow-all-funcs.The command line:
It seems that surreal takes
file:/db
as argument of--allow-funcs
, not the [PATH] part.The annoying thing is: surreal didn't report any error or warning.
Expected behaviour
I suggest use
--allow-all-funcs
or--allow-funcs <ALLOW_FUNCS>
.The same as
--allow-net
,--deny-funcs
,--deny-net
.Another approch is change the cli pattern to
surreal start [PATH] [OPTIONS]
, disallow usage ofsurreal start [OPTIONS] [PATH]
, and change Documentation everywhere(like https://hub.docker.com/r/surrealdb/surrealdb), and report clear error message if possible.SurrealDB version
v1.4.2
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: