To install the library, follow the steps below:
- Download the library package from the releases page
- Extract the package
- Include the extracted directory in your project's source (don't forget to run
julec mod init
)
Example usage of the library:
use "cliq"
static ArgMap: map[int][2]str = {
// the indexes start from 1 because 0 is reserved for `help`
1: ["version", "Display version information"],
}
fn main() {
mut cliq := cliq::Init()
cliq.Parse(/* allow_multiple: */ false)
if cliq.Res["version"] {
println("version goes here...")
}
}
See the examples directory for more examples.
The extension is distributed under the terms of the BSD 3-Clause license.
See License Details