From 8abd8f7cfed8c6719d60ea5ec4694b8176b5ac5f Mon Sep 17 00:00:00 2001 From: Patrick Koperwas Date: Tue, 6 Mar 2018 11:37:51 -0800 Subject: [PATCH] feat: Add short -w option for wait --- README.md | 5 ++--- cmd/root.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0b6a63d..164a64a 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,10 @@ Tychus has a few options. In most cases the defaults should be sufficient. ```yaml -a, --app-port int port your application runs on, overwritten by ENV['PORT'] (default 3000) -p, --proxy-port int proxy port (default 4000) - -x, --ignore stringSlice comma separated list of directories to ignore file changes in. (default node_modules,log,tmp,vendor) - --wait Wait for command to finish before proxying a request. + -x, --ignore string comma separated list of directories to ignore file changes in. (default node_modules,log,tmp,vendor) + -w, --wait Wait for command to finish before proxying a request. -t, --timeout int timeout for proxied requests (default 10) - -h, --help help for tychus --debug print debug output --version version for tychus diff --git a/cmd/root.go b/cmd/root.go index 808abcd..22d0f31 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -49,7 +49,7 @@ func init() { rootCmd.Flags().StringSliceVarP(&ignored, "ignore", "x", []string{"node_modules", "log", "tmp", "vendor"}, "comma separated list of directories to ignore file changes in.") rootCmd.Flags().IntVarP(&proxyPort, "proxy-port", "p", 4000, "proxy port") rootCmd.Flags().IntVarP(&timeout, "timeout", "t", 10, "timeout for proxied requests") - rootCmd.Flags().BoolVar(&wait, "wait", false, "Wait for command to finish before proxying a request") + rootCmd.Flags().BoolVarP(&wait, "wait", "w", false, "Wait for command to finish before proxying a request") } func start(args []string) {