diff --git a/config.go b/config.go index cd2040d..0eb6679 100644 --- a/config.go +++ b/config.go @@ -31,7 +31,7 @@ type config struct { func (this *config) install(srcDir, dstDir, taskName string, flags int) error { task, ok := this.Tasks[taskName] if !ok { - return fmt.Errorf("Profile not found: '%s'", taskName) + return fmt.Errorf("Task not found: '%s'", taskName) } return task.install(srcDir, dstDir, this, flags) diff --git a/main.go b/main.go index de7bfed..3e8608b 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func parse(filename string) (*config, error) { func fatalUsage() { _, executable := path.Split(os.Args[0]) - fmt.Printf("Usage: %s [options] config_file [target_path]\n", executable) + fmt.Printf("Usage: %s [options] config_file [source_dir]\n", executable) flag.PrintDefaults() os.Exit(1) } @@ -78,7 +78,7 @@ func main() { taskName := flag.String("task", "default", "name of task to execute") action := flag.String("action", "install", "'install' or 'uninstall' symlinks") - dstDir := flag.String("target", currUsr.HomeDir, "target directory for symlinks") + dstDir := flag.String("dest", currUsr.HomeDir, "target directory for symlinks") force := flag.Bool("force", true, "create parent directories to target") clobber := flag.Bool("clobber", false, "delete files and directories at target") verbose := flag.Bool("verbose", false, "verbose output")