Opencomputers: Getting command line arguments - arg table is nil

Created on 4 Jun 2017  路  2Comments  路  Source: MightyPirates/OpenComputers

How should I get the raw command line arguments to a lua program? I am using a lua implementation of Argparse, and by default it uses the arg table, which doesn't appear to exist in OpenOS. Is there another way to get the arguments as a table, or is this a bug?

MC: 1.10.2
OC: 1.6.2-dev-294a09edd
Forge: 12.18.3.2297

Most helpful comment

local arguments_as_a_table = {...}

All 2 comments

local arguments_as_a_table = {...}

@payonel Thanks! That works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ruukas97 picture Ruukas97  路  6Comments

BloodyRain2k picture BloodyRain2k  路  6Comments

Occhioverde picture Occhioverde  路  4Comments

joserobjr picture joserobjr  路  4Comments

kman3107 picture kman3107  路  6Comments