How do I get the flags and arguments?

To get arguments and flags that the user inputs you need to use the Plis API

Get flags and arguments

var p = require("plis")

function main(){
  // Get flags
  var flags = p.flags;
  // Get arguments
  var args = p.arguments
  
  console.log(flags.myFlag)
}
local p = require("plis")

function main()
  -- Get the flags
  flags = p.flags
  -- Get the arguments
  args = p.args
  
  print(flags.myFlag)
end