Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎jsonfiddle_main.go

Lines changed: 2 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /