Skip to content
This repository was archived by the owner on Jul 12, 2018. It is now read-only.

Access flag defaults #16

Open
mattes opened this issue Apr 2, 2015 · 0 comments
Open

Access flag defaults #16

mattes opened this issue Apr 2, 2015 · 0 comments

Comments

@mattes
Copy link
Owner

mattes commented Apr 2, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant