From 3db0c511fc875041f6c794a9c6677b5ded4ffc4d Mon Sep 17 00:00:00 2001 From: theimpostor Date: Thu, 3 Aug 2023 21:52:18 -0500 Subject: Update readme, arg num validation --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 18314b7..9cd7fa2 100644 --- a/main.go +++ b/main.go @@ -246,6 +246,7 @@ var pasteCmd = &cobra.Command{ Long: `Outputs system clipboard contents to stdout. Usage: osc paste`, + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { logfile := initLogging() defer closeSilently(logfile) @@ -258,6 +259,7 @@ var versionCmd = &cobra.Command{ Use: "version", Short: "Outputs version information", Long: `Outputs version information`, + Args: cobra.NoArgs, Run: func(cmd *cobra.Command, args []string) { if info, ok := debug.ReadBuildInfo(); !ok { fmt.Println(`Unable to obtain build info.`) -- cgit v1.2.3