summaryrefslogtreecommitdiff
path: root/interact.go
diff options
context:
space:
mode:
Diffstat (limited to 'interact.go')
-rw-r--r--interact.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/interact.go b/interact.go
index 6ed06c6..7514046 100644
--- a/interact.go
+++ b/interact.go
@@ -31,7 +31,7 @@ func interact() {
promptcol := boldBlue
// display info.
- shell.Println("Starting interactive Shell")
+ //shell.Println("Starting interactive Shell")
shell.SetPrompt(promptcol(">>>"))
shell.AddCmd(&ishell.Cmd{
@@ -569,12 +569,14 @@ func interact() {
// teardown
//shell.Close()
// when started with "exit" as first argument, assume non-interact ive execution
+ args := removeStringFromArray(os.Args[1:],"-file",1)
- if len(os.Args) > 1 {
- args := removeStringFromArray(os.Args[1:],"-file",1)
+ if len(args) > 0 {
+ //args := removeStringFromArray(os.Args[1:],"-file",1)
//fmt.Println(args)
shell.Process(args...)
} else {
+ shell.Println("Starting interactive Shell")
//start shell
shell.Run()
// teardown