mirror of
https://github.com/zellyn/goapple2.git
synced 2024-11-16 00:05:43 +00:00
30 lines
424 B
Go
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)
|
|
}
|
|
}
|