Args

public class Args

Return the command line arguments passed to the script

  • all

    Return the list of arguments passed to the script

    Declaration

    Swift

    public static var all: [String]
  • Return a parsed list of arguments containing the flags and the parameters passed to the scripts The flags are recognized as short flags -f or long flags --force The flag value will be the argument that follows the flag -- is used to mark the terminatin of the flags

    Declaration

    Swift

    public static var parsed: ParsedArgs