fix caller name recognition

This commit is contained in:
Loïc Gelle 2017-06-29 11:33:43 -07:00
parent 1d092b9e7b
commit 3a43f22758

View File

@ -2,12 +2,13 @@ package main
import( import(
"os" "os"
"path"
) )
func main() { func main() {
// Parse command line // Parse command line
var args = os.Args var args = os.Args
var callerName = args[0] _, callerName := path.Split(args[0])
args = args[1:] args = args[1:]
switch callerName { switch callerName {