Created
August 31, 2018 15:38
-
-
Save Ceri-anne/4959356c5ac0c7c0a463b0de6fc3521c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func run() { | |
let arguments = CommandLine.arguments | |
if arguments.count > 1 { | |
let greeting = arguments[1] | |
print(greeting) | |
} | |
if arguments.count > 2 { | |
let number = arguments[2] | |
print(number) | |
} | |
print("Hello, World! This is my command line tool") | |
} | |
run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment