Skip to main content

Module cli

Module cli 

Source
Expand description

The command line the binary parses.

Re-exportsΒ§

use std::path::PathBuf; πŸ”’
use argh::FromArgs; πŸ”’
use argh::FromArgs; πŸ”’
use crate::config::AnimationRef; πŸ”’
use crate::config::Config; πŸ”’
use crate::config::DocumentConfig; πŸ”’

StructsΒ§

Args
The command-line arguments.

EnumsΒ§

Parsed
What parse decided the process should do.

ConstantsΒ§

PROGRAM πŸ”’
The program name argh prints in its usage.

FunctionsΒ§

parse
Parse the command line into the process’s outcome.
parse_animation πŸ”’
Read an animation reference: a plain integer is an index, anything else a name.
parse_clear πŸ”’
Parse a clear colour: three or four comma-separated numbers.
parse_floats πŸ”’
Parse a comma-separated list of numbers.
parse_matrix πŸ”’
Parse sixteen comma-separated numbers.
parse_scale πŸ”’
Parse one or two comma-separated factors; one factor applies to both axes.
parse_size πŸ”’
Parse a WxH size.
parse_vec3 πŸ”’
Parse three comma-separated numbers.
usage
The full usage text, as argh prints it.