diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-15 18:17:31 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-15 18:17:31 +0200 |
| commit | f82c6ff724d6e56052c40f409be785b796eca2ab (patch) | |
| tree | f02afeacee8e37c775de92cb78efff92b0a1bcc2 /interact.go | |
| parent | 986ba6d4cd6926daee8e7342ebb17c9ce1dc2637 (diff) | |
Load new DB with flag fully implemented0.2.7
Diffstat (limited to 'interact.go')
| -rw-r--r-- | interact.go | 8 |
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 |
