fugu icon indicating copy to clipboard operation
fugu copied to clipboard

Access flag defaults

Open mattes opened this issue 10 years ago • 0 comments

Right now it's not possible to access flag defaults like /bin/bash from flag shell. As a work-around commands have to manually check for empty values and set the default again. This is redundant and should be changed.

FuguFlags["shell"].String([]string{"-shell"}, "/bin/bash", "Path to shell")

see https://github.com/mattes/fugu/blob/v1/fuguflags.go#L43 and https://github.com/mattes/fugu/blob/v1/fugu.go#L158

mattes avatar Apr 02 '15 00:04 mattes