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