goapple2/a2/main.go
2014-05-10 15:10:48 -07:00

30 lines
424 B
Go

package main
import (
"log"
"os"
"github.com/gonuts/commander"
"github.com/gonuts/flag"
)
var a2cmd *commander.Command
func init() {
a2cmd = &commander.Command{
UsageLine: "a2",
Subcommands: []*commander.Command{
cmdDisasm,
cmdDiskConvert,
cmdCharROM,
},
Flag: *flag.NewFlagSet("a2", flag.ExitOnError),
}
}
func main() {
if err := a2cmd.Dispatch(os.Args[1:]); err != nil {
log.Fatal(err)
}
}