mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-31 22:36:38 -04:00
Initial code commit
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
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()
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user