diff options
| author | theimpostor <sahirhoda@gmail.com> | 2023-08-03 21:52:18 -0500 |
|---|---|---|
| committer | theimpostor <sahirhoda@gmail.com> | 2023-08-03 21:52:18 -0500 |
| commit | 3db0c511fc875041f6c794a9c6677b5ded4ffc4d (patch) | |
| tree | 04d41c42319c1f490b5905559a2170015849821c /main.go | |
| parent | b0591174dc3549cc91340df46604ab49df35b11b (diff) | |
Update readme, arg num validation
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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.`) |
