pub(super) const DEV: &str = "--dev";
pub(super) const DEBUG: &str = "--debug";
pub(super) const LIST: &str = "--list";
pub(crate) const MOD: &str = "--mod";
pub(super) const DRY_RUN: &str = "--dry-run";
pub(super) const HELP: [&str; 2] = ["-h", "--help"];
pub(super) const FLAG: &str = "--";
pub(super) fn has(rest: &[String], flag: &str) -> bool {
rest.iter().any(|a| a == flag)
}
pub(super) fn words(rest: &[String]) -> Vec<&str> {
rest.iter()
.map(String::as_str)
.filter(|a| !a.starts_with(FLAG))
.collect()
}