mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-29 05:16:28 -04:00
30 lines
299 B
Go
30 lines
299 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
|
|
args := os.Args[1:]
|
|
argsCount := len(args)
|
|
|
|
if argsCount == 0 {
|
|
|
|
EntryListGen()
|
|
|
|
} else if argsCount == 1 {
|
|
|
|
switch args[0] {
|
|
|
|
case "help", "--help", "-h":
|
|
HelpMain()
|
|
case "version", "-v":
|
|
Version()
|
|
default:
|
|
HelpMain()
|
|
|
|
}
|
|
}
|
|
}
|