Skip to main content

parse_memory_mb

Function parse_memory_mb 

Source
pub fn parse_memory_mb(s: &str) -> Result<u32, String>
Expand description

Parse --memory: Docker syntax, or bare digits meaning MB (back-compat with the old integer flag). Enforces the RAM floor. Clap value_parser shape: Err(String) renders as a clean CLI error.