Ignore filename extension when checking name.

This commit is contained in:
Andrey Parhomenko 2022-11-23 12:16:19 +05:00
parent b7dbc364ea
commit d67de68736

View file

@ -19,8 +19,9 @@ func Main(name string, m Tools) {
utilName string
args []string
)
if binBase := path.Base(os.Args[0]) ; binBase != name {
binBase := path.Base(os.Args[0]) ;
binBase = binBase[:len(binBase)-len(path.Ext(binBase))]
if binBase != name {
utilName = binBase
args = os.Args[:]
} else {