diff --git a/commands/runner.go b/commands/runner.go index 9fe8b9e28dfcb705a8f5cc4e6f73e8badfa58ee7..1e89d7e940e6415974a4700e06af5be1d332dc44 100644 --- a/commands/runner.go +++ b/commands/runner.go @@ -3,7 +3,6 @@ package commands import ( "fmt" "github.com/jingweno/gh/git" - "os" ) type Runner struct { @@ -11,7 +10,7 @@ type Runner struct { } func (r *Runner) Execute() error { - args := NewArgs(os.Args[1:]) + args := NewArgs(r.Args) if args.Command == "" { usage() }