This commit is contained in:
Alex Yatskov 2015-06-24 18:01:55 +09:00
parent d75e0c59ed
commit 5b51896793

View File

@ -26,14 +26,15 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "fmt"
"github.com/naoina/toml"
"gopkg.in/yaml.v2"
"io/ioutil" "io/ioutil"
"log" "log"
"os" "os"
"os/user" "os/user"
"path" "path"
"path/filepath" "path/filepath"
"github.com/naoina/toml"
"gopkg.in/yaml.v2"
) )
const ( const (
@ -72,7 +73,7 @@ func parse(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", 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()