Allow multiple -command flags (#552)

This commit is contained in:
Marius authored and GitHub committed 2021-01-07 01:10:54 +03:00
1 parent b5f6f6edee
commit 8e09df5969
2 files changed
+16 -5

No files matched your search

+2 -2
View File
@@ -183,8 +183,8 @@ func (app *app) loop() {
}
}
if gCommand != "" {
p := newParser(strings.NewReader(gCommand))
for _, cmd := range gCommands {
p := newParser(strings.NewReader(cmd))
for p.parse() {
p.expr.eval(app, nil)