1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2022-01-11 16:14:48 +08:00
parent 2899e2bf82
commit c169cf9ad6

View File

@ -98,10 +98,10 @@ var Pulse = &Message{
}
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"))...)
}
if arg = append(arg, os.Args[1:]...); len(arg) == 0 {
if len(arg) == 0 {
arg = append(arg, HELP)
}