Module cli

Module cli 

Source
Expand description

Parse the command line for Rust BZIP2.

The options that can be set are defined in the BzOpts struct. An instance of the struct must be created and initialized.

Usage example:

let mut opts = BzOpts::new();
opts.init();

You can then access the options via the instance you created.

Structs§

BzOpts

Enums§

Mode
Zip, Unzip, Test, and testing out Build_Index and Unzip_Blocks
Output
Define the two output channels
Status
NOT YET IMPLEMENTED. Used during the library mode by the calling program.
Verbosity
Verbosity of user information

Functions§

bzopts_init
Initialize the options struct by parsing data supplied via the command line. Takes no arguments and returns nothing.