pub fn check_cli_arg(arg: &String) -> RequestedVersion {
    let version_from_cli = parse_version_from_cli(arg);
    if version_from_cli != RequestedVersion::Any {
        version_from_cli
    } else {
        // XXX shebang from file
        println!("No version found in the first CLI arg");
        RequestedVersion::Any
    }
}
/// Checks if the string contains a version specifier.
///
/// If not version specifier is found, `RequestedVersion::Any` is returned.
//
// https://docs.python.org/3.8/using/windows.html#from-the-command-line
Checks if the string contains a version specifier.
If not version specifier is found, `RequestedVersion::Any` is returned.


Checks if the string contains a version specifier . If not version specifier is found ` RequestedVersion :: Any ` is returned .
pub fn check_cli_arg(arg: &String) -> RequestedVersion {
    let version_from_cli = parse_version_from_cli(arg);
    if version_from_cli != RequestedVersion::Any {
        version_from_cli
    } else {
        // XXX shebang from file
        println!("No version found in the first CLI arg");
        RequestedVersion::Any
    }
}
pub fn check_cli_arg ( arg : & String ) -> RequestedVersion { let version_from_cli = parse_version_from_cli ( arg ) ; if version_from_cli != RequestedVersion :: Any { version_from_cli } else { // XXX shebang from file println ! ( " " ) ; RequestedVersion :: Any } }
Checks if the string contains a version specifier.
Checks if the string contains a version specifier .
arg
&String
arg
&String