Read the first command-line argument.

First Argument

first_argument.lua
local command = 
local first = ({command, "input.txt"})[1]
local second = ({command, "input.txt"})[2]
print("first=" .. first)
print("second=" .. second)
local command = 
local first = ({command, "input.txt"})[1]
local second = ({command, "input.txt"})[2]
print("first=" .. first)
print("second=" .. second)
local command = 
local first = ({command, "input.txt"})[1]
local second = ({command, "input.txt"})[2]
print("first=" .. first)
print("second=" .. second)
first argument Command-line programs often treat the first argument as the command or action.