Module parse

Module parse 

Source
Expand description

Parsing utilities for command-line arguments and options

Functionsยง

get_flag_value
Extract the value for a flag from command arguments Returns None if flag not found or if it has no value
has_flag
Check if a command argument list contains a specific flag
parse_option
Parse a command option string into parts, handling quoted arguments properly
parse_options
Parse multiple space-separated options, each potentially containing quoted values
remove_flag
Remove a flag and its value from command arguments