Skip to main content

Module words

Module words 

Source
Expand description

Words: splitting a script line like a shell does (quotes, escapes, comments) and a small argument parser (flags, options and positionals in any order).

Structs§

Args
The arguments after the verb. Options are taken by name; what is left are positionals.

Functions§

quote
Quote a word for display when it needs it (the inverse of split for one word).
split
Split a line into words: whitespace separates, "…" and '…' group (with \", \\, \n, \t inside double quotes), and an unquoted # at the start of a word begins a comment.