Opened 7 years ago
Last modified 7 years ago
#1439 new enhancement
Add switch to csi to set initial module
Reported by: | evhan | Owned by: | |
---|---|---|---|
Priority: | not urgent at all | Milestone: | someday |
Component: | core tools | Version: | 5.0.0 |
Keywords: | csi, modules | Cc: | |
Estimated difficulty: | medium |
Description ΒΆ
Add a command line option to csi to specify the starting module, similar to Chibi's "-x" switch. This would be equivalent to running csi interactively and immediately using ",m <module>", but could be used with non-interactive scripts, for example.
Change History (3)
comment:1 follow-up: 3 Changed 7 years ago by
comment:2 Changed 7 years ago by
Well you could call the ##sys#switch-module with -e as a workaround... except that this does not work as expected. Maybe expose the top level command procedure for ,m is the way to go.
comment:3 Changed 7 years ago by
Replying to mario:
Isn't it
-R
?
-R
just loads an extension, it doesn't switch the evaluation context.
Replying to ckeen:
Well you could call the ##sys#switch-module with -e as a workaround... except that this does not work as expected. Maybe expose the top level command procedure for ,m is the way to go.
Exposing a procedure for use with -e
would be an option, except that using -e
will make csi behave in batch style rather than interactively. So, that wouldn't be all we need to add this feature, but it could be a start.
Isn't it
-R
?