Skip to main content

Module cli

Module cli 

Source
Expand description

Shared CLI entry point for the mdcat and mdless binaries. Shared CLI entry point for both binaries.

src/main.rs and src/bin/mdless.rs are shims into run. clap’s multicall mode picks the subcommand from argv[0].

Functions§

run
Parse arguments, detect the terminal, dispatch. Exits the process.