/yesno

show yes/no at a shell prompt

Primary LanguageGoMIT LicenseMIT

yesno

show yes/no at a shell prompt

Usage

$ yesno && echo done.
continue? [y/N]: n
$ yesno && echo done.
continue? [y/N]: y
done.
$

Options

--message value, -m value  specify message (default: "continue?")
--yes, -y                  set default to yes
--help, -h                 show help
--version, -v              print the version

License

MIT License

Version

0.1.0