mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 10:12:02 +08:00
opt some
This commit is contained in:
parent
5cdb8fc10a
commit
e154b0fa18
2
init.go
2
init.go
@ -123,7 +123,7 @@ func Run(arg ...string) string {
|
|||||||
}
|
}
|
||||||
default: // 执行命令
|
default: // 执行命令
|
||||||
if _, ok := Info.names[path.Base(os.Args[0])]; ok {
|
if _, ok := Info.names[path.Base(os.Args[0])]; ok {
|
||||||
arg = kit.Simple(path.Base(os.Args[0]), arg)
|
// arg = kit.Simple(path.Base(os.Args[0]), arg)
|
||||||
}
|
}
|
||||||
if len(arg) == 0 {
|
if len(arg) == 0 {
|
||||||
arg = append(arg, HELP)
|
arg = append(arg, HELP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user