Switching toml parser to BurntSushi/toml to fix issue #2

This commit is contained in:
Alex Yatskov 2015-08-10 13:48:57 +09:00
parent a644ed8f7f
commit db4c127550

View File

@ -32,7 +32,7 @@ import (
"os/user"
"path"
"github.com/naoina/toml"
"github.com/BurntSushi/toml"
"gopkg.in/yaml.v2"
)
@ -73,7 +73,7 @@ func parseCfg(filename string) (*config, error) {
}
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, "Parameters:\n")
flag.PrintDefaults()