Skip to content

Commit

Permalink
通用参数优先执行
Browse files Browse the repository at this point in the history
  • Loading branch information
ctfang authored Jun 17, 2022
1 parent b868809 commit d1a05af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Console.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func helpDaemon(val string, c *Console) bool {

// 添加通用参数
func (c *Console) AddBaseOption(param ArgParam) {
c.baseOption = append(c.baseOption, param)
c.baseOption = append([]ArgParam{param}, c.baseOption...)
}

type Command interface {
Expand Down

0 comments on commit d1a05af

Please sign in to comment.