Module arglang

Module arglang 

Source
Expand description

TOML-inspired command-line argument language.

Supports strings, booleans, integers and arrays (lists).

  • Booleans are expressed as true or false.
  • Any integer must fit into i64, otherwise will be parsed as strings.
  • Strings can be quoted using double quotes. A backslash \\ can be used to escape quotes inside.
  • Unquoted strings are terminated on whitespace.
  • Arrays are written using brackets and commas: [1, 2, 3].

ยงExamples

  • [127.0.0.1, 1.2.3.4, 6.7.8.9] list of three strings
  • "hello world" string hello world
  • ["no\"de\"-1", node-2] list of two strings (no"de"-1 and node-2).