- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
22 lines
745 B
Go
22 lines
745 B
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "bc",
|
|
Description: "An arbitrary precision calculator language",
|
|
Options: []spec.Option{
|
|
{Name: "--help", Description: "Print the usage and exit"},
|
|
{Name: "--interactive", Description: "Force interactive mode"},
|
|
{Name: "--mathlib", Description: "Define the standard math library"},
|
|
{Name: "--warn", Description: "Give warnings for extensions to POSIX bc"},
|
|
{Name: "--standard", Description: "Process exactly the POSIX bc language"},
|
|
{Name: "--quiet", Description: "Do not print the normal GNU bc welcome"},
|
|
{Name: "--version", Description: "Print the version number and copyright and quit"},
|
|
},
|
|
})
|
|
}
|