new: added -eval command

This commit is contained in:
evilsocket 2018-01-08 00:15:55 +01:00
parent a849692468
commit 59c0e1eb76
3 changed files with 12 additions and 1 deletions

View file

@ -8,6 +8,7 @@ type Options struct {
Debug *bool
Silent *bool
NoHistory *bool
Commands *string
}
func ParseOptions() (Options, error) {
@ -17,6 +18,7 @@ func ParseOptions() (Options, error) {
Debug: flag.Bool("debug", false, "Print debug messages."),
Silent: flag.Bool("silent", false, "Suppress all logs which are not errors."),
NoHistory: flag.Bool("no-history", false, "Disable history file."),
Commands: flag.String("eval", "", "Run a command, used to set variables via command line."),
}
flag.Parse()