Switching toml parser to BurntSushi/toml to fix issue #2
This commit is contained in:
parent
a644ed8f7f
commit
db4c127550
@ -32,7 +32,7 @@ import (
|
|||||||
"os/user"
|
"os/user"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/naoina/toml"
|
"github.com/BurntSushi/toml"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ func parseCfg(filename string) (*config, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
fmt.Fprintf(os.Stderr, "Usage: %s [options] conf src\n", os.Args[0])
|
fmt.Fprintf(os.Stderr, "Usage: %s [options] conf src\n", path.Base(os.Args[0]))
|
||||||
fmt.Fprintf(os.Stderr, "http://foosoft.net/projects/homemaker/\n\n")
|
fmt.Fprintf(os.Stderr, "http://foosoft.net/projects/homemaker/\n\n")
|
||||||
fmt.Fprintf(os.Stderr, "Parameters:\n")
|
fmt.Fprintf(os.Stderr, "Parameters:\n")
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
|
Loading…
Reference in New Issue
Block a user