commit 6ab3fa4
chld
·
2026-02-07 04:32:02 +0000 UTC
parent 23680ac
improve help()
1 files changed,
+9,
-3
M
main.go
M
main.go
+9,
-3
1@@ -11,21 +11,27 @@ import (
2 )
3
4 func help() {
5+ fmt.Printf("usage:\t%s [cmd] <pkgs>\n",
6+ filepath.Base(os.Args[0]))
7 // ports management
8- fmt.Printf("\033[m\033[1;31m%s\t\033[m\033[32m", filepath.Base(os.Args[0]))
9+ fmt.Printf("\t")
10+ fmt.Printf("\033[m\033[1m%s \033[m\033[32m", filepath.Base(os.Args[0]))
11 fmt.Printf("[s|us]")
12 fmt.Printf("\033[m\t\tupdate and upgrade\n")
13 // package mamagement
14- fmt.Printf("\033[m\033[1;32m%s\t\033[m\033[32m", filepath.Base(os.Args[0]))
15+ fmt.Printf("\t")
16+ fmt.Printf("\033[m\033[1m%s \033[m\033[32m", filepath.Base(os.Args[0]))
17 fmt.Printf("[m|mi|mic]")
18 fmt.Printf("\033[m\t\tmanage ports\n")
19
20 // package management without compiling
21- fmt.Printf("\033[m\033[1;33m%s\t\033[m\033[32m", filepath.Base(os.Args[0]))
22+ fmt.Printf("\t")
23+ fmt.Printf("\033[m\033[1m%s \033[m\033[32m", filepath.Base(os.Args[0]))
24 fmt.Printf("[sp|ld]")
25 fmt.Printf("\033[m\t\tmanage ports tree\n")
26
27 // misc
28+ fmt.Printf("\t")
29 fmt.Printf("\033[m\033[1m%s\t\033[m\033[32m", filepath.Base(os.Args[0]))
30 fmt.Printf("[h]")
31 fmt.Printf("\033[m\t\tabout %s",