Closed Canop closed 2 months ago
With this PR comes a new verb invocation syntax, allowing to have verb with name such "-".
Here's the doc:
/// Examples:
/// "mv" -> name: "mv"
/// "!mv" -> name: "mv", bang
/// "mv a b" -> name: "mv", args: "a b"
/// "mv!a b" -> name: "mv", args: "a b", bang
/// "a-b c" -> name: "a-b", args: "c", bang
/// "-sp" -> name: "-", args: "sp"
/// "-a b" -> name: "-", args: "a b"
/// "-a b" -> name: "-", args: "a b"
/// "--a" -> name: "--", args: "a"
///
/// Notes:
/// 1. A name is either "special" (only made of non alpha characters)
/// or normal (starting with an alpha character). Special names don't
/// need a space afterwards, as the first alpha character will start
/// the args.
/// 2. The space or colon after the name is optional if there's a bang
/// after the name: the bang is the separator.
/// 3. Duplicate separators before args are ignored (they're usually typos)
/// 4. An opening parenthesis starts args
This is useful, thanks!
For example, to show dates and permissions:
Opinions on this feature welcome.