We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e6a0e4 commit 00b3107Copy full SHA for 00b3107
cmd/browsers.go
@@ -1893,8 +1893,16 @@ var browsersUpdateCmd = &cobra.Command{
1893
Use: "update <id>",
1894
Short: "Update a browser session",
1895
Long: "Update a running browser session. Currently supports changing or removing the proxy.",
1896
- Args: cobra.ExactArgs(1),
1897
- RunE: runBrowsersUpdate,
+ Args: func(cmd *cobra.Command, args []string) error {
+ if len(args) == 0 {
1898
+ return fmt.Errorf("missing required argument: browser ID\n\nUsage: kernel browsers update <id> [flags]")
1899
+ }
1900
+ if len(args) > 1 {
1901
+ return fmt.Errorf("expected 1 argument (browser ID), got %d", len(args))
1902
1903
+ return nil
1904
+ },
1905
+ RunE: runBrowsersUpdate,
1906
}
1907
1908
func init() {
0 commit comments