From 2801e65e2a3667059df9cd910496a70820759074 Mon Sep 17 00:00:00 2001 From: Jingwen Owen Ou Date: Wed, 3 Jul 2013 21:36:04 -0700 Subject: [PATCH] Use passin args --- commands/runner.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/runner.go b/commands/runner.go index 9fe8b9e2..1e89d7e9 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() } -- GitLab