Function hisho_core::arg_parse::parse

source ·
pub fn parse(args: Vec<String>) -> HashMap<String, String>
Expand description

Try to parse a list of string into a map

This is a simple option parser for command line arguments. Only dash and double-dash prefixed keys are supported. If a key is followed by a value, that value will be used. If a key is followed by another key, the value of the first key will be empty.

Disclaimer: Authored by ChatGPT and modified by Thomas Obernosterer.