summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyp <zhou.youpeng@foxmail.com>2023-12-18 11:27:44 +0800
committerzyp <zhou.youpeng@foxmail.com>2023-12-18 11:27:44 +0800
commit6036fff0829ae3c065f58539b84186cd9a6b01b5 (patch)
tree5dbc4d6cd782975653a33ba469ed3dafeabfb940
parent2e975c8e9c4c5182acace2d37395fc904de0db66 (diff)
feat: update README.md
-rw-r--r--README.md1
-rw-r--r--main.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 44fe3ff..e7a407d 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,7 @@ Available Commands:
version Outputs version information
Flags:
+ -d, --device string select device
-h, --help help for osc
-l, --log string write logs to file
-v, --verbose verbose logging
diff --git a/main.go b/main.go
index fe8f75f..d30b042 100644
--- a/main.go
+++ b/main.go
@@ -289,7 +289,7 @@ var rootCmd = &cobra.Command{
func init() {
rootCmd.PersistentFlags().BoolVarP(&verboseFlag, "verbose", "v", false, "verbose logging")
rootCmd.PersistentFlags().StringVarP(&logfileFlag, "log", "l", "", "write logs to file")
- rootCmd.PersistentFlags().StringVarP(&deviceFlag, "device", "d", os.Getenv("SSH_TTY"), "device")
+ rootCmd.PersistentFlags().StringVarP(&deviceFlag, "device", "d", os.Getenv("SSH_TTY"), "select device")
if deviceFlag == "" {
deviceFlag = os.Getenv("/dev/tty")