Summary

Add switch to csi to set initial module

Metadata

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.

Changes and comments

[2018-01-03 08:10:01 UTC] mario wrote:

Isn't it -R?

[2018-01-03 12:47:57 UTC] ckeen wrote:

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.

[2018-01-03 12:47:57 UTC] ckeen wrote:

1514980181830776

[2018-01-24 21:43:09 UTC] evhan wrote:

Replying to mario: > Isn't it -R?

 
 Replying to [comment:2 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.