Module printr::app[][src]

This module is responsible for building the command line application and it’s associated interface.

Structs

CustomArg

This is a custom type which acts a wrapper around clap’s Arg struct and adds some extended custom functionality.

Enums

CustomArgKind

All arguments can have three types - POSITIONAL, SWITCH and FLAG. This enum takes care of handling logic for these three types.

Functions

all_args_and_flags

This function takes a vector as an argument and pushes all the arguments for the app into it. This can be later used to build the command line application.

app

This sets some basic metadata about our command line application, such as help, version etc, and then attaches all the relevant arguments to it.