Skip to content

Commit ad7599a

Browse files
committed
Fixed bad assumption about default output directory.
1 parent 321a33d commit ad7599a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/finley/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import (
1919
)
2020

2121
const (
22-
usageFormat = `finley - %s
22+
appName = "finley"
23+
usageFormat = appName + ` - %s
2324
2425
usage: finley [options] directory-path/
2526
@@ -77,7 +78,7 @@ func main() {
7778
}
7879

7980
if len(*outputDirPath) == 0 {
80-
*outputDirPath = filepath.Base(targetDirPath)
81+
*outputDirPath = filepath.Base(targetDirPath) + "-" + appName
8182
}
8283
if info, readDirErr := ioutil.ReadDir(*outputDirPath); readDirErr == nil && len(info) > 0 {
8384
log.Fatalf("the output directory ('%s') is not empty", *outputDirPath)

0 commit comments

Comments
 (0)