mirror of
https://shylinux.com/x/icebergs
synced 2025-06-27 02:37:31 +08:00
opt some
This commit is contained in:
parent
2899e2bf82
commit
c169cf9ad6
4
init.go
4
init.go
@ -98,10 +98,10 @@ var Pulse = &Message{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Run(arg ...string) string {
|
func Run(arg ...string) string {
|
||||||
if os.Getenv("ctx_arg") != "" {
|
if arg = append(arg, os.Args[1:]...); os.Getenv("ctx_arg") != "" {
|
||||||
arg = append(arg, kit.Split(os.Getenv("ctx_arg"))...)
|
arg = append(arg, kit.Split(os.Getenv("ctx_arg"))...)
|
||||||
}
|
}
|
||||||
if arg = append(arg, os.Args[1:]...); len(arg) == 0 {
|
if len(arg) == 0 {
|
||||||
arg = append(arg, HELP)
|
arg = append(arg, HELP)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user