goapple2/a2/main.go

30 lines
424 B
Go
Raw Normal View History

2013-04-21 23:49:58 +00:00
package main
import (
"log"
"os"
"github.com/gonuts/commander"
"github.com/gonuts/flag"
)
var a2cmd *commander.Command
2013-04-21 23:49:58 +00:00
func init() {
a2cmd = &commander.Command{
UsageLine: "a2",
Subcommands: []*commander.Command{
2013-04-21 23:49:58 +00:00
cmdDisasm,
cmdDiskConvert,
2014-05-10 22:10:48 +00:00
cmdCharROM,
2013-04-21 23:49:58 +00:00
},
Flag: *flag.NewFlagSet("a2", flag.ExitOnError),
2013-04-21 23:49:58 +00:00
}
}
func main() {
if err := a2cmd.Dispatch(os.Args[1:]); err != nil {
2013-04-21 23:49:58 +00:00
log.Fatal(err)
}
}