Skip to content

Commit 4d6427b

Browse files
committed
Fix running Gitlab::CLI specs
- Fixes #686 - Fixes #705
1 parent 9e7d4ff commit 4d6427b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/gitlab/cli.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ class Gitlab::CLI
1616
#
1717
# @param [Array] args The command and it's optional arguments.
1818
def self.start(args)
19+
args_dup = args.dup
1920
command = begin
20-
args.shift.strip
21+
args_dup.shift.strip
2122
rescue StandardError
2223
'help'
2324
end
24-
run(command, args)
25+
run(command, args_dup)
2526
end
2627

2728
# Processes a CLI command and outputs a result to the stream (stdout).

0 commit comments

Comments
 (0)