Expand description
CLI and environment parsing helpers.
This module provides utilities for parsing environment variables and CLI inputs in consistent ways.
Structs§
- Argv
- Parsed editor command with program and arguments.
Functions§
- bool_
from_ env - Read a boolean from an environment variable.
- editor_
argv - Get the editor command from
$VISUALor$EDITOR, parsed into program and args. - parse_
comma_ set - Parse a comma/whitespace separated string into a lowercase-trimmed set.
- set_
from_ env - Return
Option<BTreeSet>if the environment variable is present and non-empty. - usize_
from_ env - Read a usize from an environment variable.