mirror of https://github.com/Hilbis/Hilbish
fix: tryrun input from -c only if its provided
parent
83bcb35dcf
commit
83591f9bba
5
main.go
5
main.go
|
@ -116,7 +116,10 @@ func main() {
|
||||||
readline.Completer = readline.FilenameCompleter
|
readline.Completer = readline.FilenameCompleter
|
||||||
readline.LoadHistory(homedir + "/.hilbish-history")
|
readline.LoadHistory(homedir + "/.hilbish-history")
|
||||||
|
|
||||||
RunInput(*cmdflag)
|
if *cmdflag != "" {
|
||||||
|
RunInput(*cmdflag)
|
||||||
|
}
|
||||||
|
|
||||||
if getopt.NArgs() > 0 {
|
if getopt.NArgs() > 0 {
|
||||||
l.SetGlobal("args", luar.New(l, getopt.Args()))
|
l.SetGlobal("args", luar.New(l, getopt.Args()))
|
||||||
err := l.DoFile(getopt.Arg(0))
|
err := l.DoFile(getopt.Arg(0))
|
||||||
|
|
Loading…
Reference in New Issue