standardize arguments
This commit is contained in:
3
main.go
3
main.go
@@ -124,6 +124,7 @@ func main() {
|
||||
|
||||
// switch-main flags
|
||||
switchMainTabID := switchMainCmd.String("tab", "", "Tab ID to switch back to main context (optional, uses current tab if not specified)")
|
||||
switchMainTimeout := switchMainCmd.Int("timeout", 5, "Timeout in seconds for switching back to main context")
|
||||
switchMainHost := switchMainCmd.String("host", "localhost", "Daemon host")
|
||||
switchMainPort := switchMainCmd.Int("port", 8989, "Daemon port")
|
||||
|
||||
@@ -412,7 +413,7 @@ func main() {
|
||||
c := client.NewClient(*switchMainHost, *switchMainPort)
|
||||
|
||||
// Switch back to main page
|
||||
err := c.SwitchToMain(*switchMainTabID)
|
||||
err := c.SwitchToMain(*switchMainTabID, *switchMainTimeout)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user