Updated commandLine()

Updated commandLine() to use an input variable rather than input()