Opened 17 months ago

Last modified 16 months 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: Changed 17 months ago by mario

Isn't it -R?

comment:2 Changed 17 months ago by 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.

Last edited 17 months ago by ckeen (previous) (diff)

comment:3 in reply to: ↑ 1 Changed 16 months ago by evhan

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.

Note: See TracTickets for help on using tickets.