mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
Updated for Swift 3
Process enum has been replaced with CommandLine in Swift 3. Changed main.swift to reflect this.
This commit is contained in:
parent
97ba169a35
commit
9c63a7732a
@ -14,8 +14,8 @@ let items = [
|
||||
let app = GildedRose(items: items);
|
||||
|
||||
var days = 2;
|
||||
if (Process.argc > 1) {
|
||||
days = Int(Process.arguments[1])! + 1
|
||||
if (CommandLine.argc > 1) {
|
||||
days = Int(CommandLine.arguments[1])! + 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user