Ignore filename extension when checking name.
This commit is contained in:
parent
b7dbc364ea
commit
d67de68736
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,9 @@ func Main(name string, m Tools) {
|
||||||
utilName string
|
utilName string
|
||||||
args []string
|
args []string
|
||||||
)
|
)
|
||||||
|
binBase := path.Base(os.Args[0]) ;
|
||||||
if binBase := path.Base(os.Args[0]) ; binBase != name {
|
binBase = binBase[:len(binBase)-len(path.Ext(binBase))]
|
||||||
|
if binBase != name {
|
||||||
utilName = binBase
|
utilName = binBase
|
||||||
args = os.Args[:]
|
args = os.Args[:]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue