add 'shellopts' option to set shell arguments

Related #102
This commit is contained in:
Gokcehan committed 2018-06-26 21:14:55 +03:00
1 parent 4c54acebeb
commit e99478e8a1
7 files changed
+12

No files matched your search

+2
View File
@@ -202,6 +202,8 @@ func (e *setExpr) eval(app *app, args []string) {
}
}
gOpts.info = toks
case "shellopts":
gOpts.shellopts = strings.Split(e.val, ":")
default:
app.ui.printf("unknown option: %s", e.opt)
}