diff --git a/project/src/config.rs b/project/src/config.rs new file mode 100644 index 0000000..b6714aa --- /dev/null +++ b/project/src/config.rs @@ -0,0 +1,21 @@ +// Libraries +use std::env; + +// Enums +pub enum OperationMode { + Training, + Infrence, +} + +// Functions +pub fn get_operation_mode() -> Option { + // Getting command line arguments + let args: Vec = env::args().collect(); + + // Getting operation mode + match &args[1] { + "training" => Some(OperationMode::Training), + "infrence" => Some(OperationMode::Infrence), + _ => None, + } +}