Skip to content

Commit 0600e81

Browse files
committed
- [*] adapt progname name according to executable
1 parent f44996d commit 0600e81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: jsonfiddle_main.go

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"io"
1414
"io/ioutil"
1515
"os"
16+
"path/filepath"
1617
"regexp"
1718
"strings"
1819

@@ -52,6 +53,7 @@ var (
5253

5354
// Function main
5455
func main() {
56+
progname = filepath.Base(os.Args[0])
5557
//NOTE: You can set any writer implements io.Writer
5658
// default writer is os.Stdout
5759
if err := cli.Root(root,

0 commit comments

Comments
 (0)