pub fn check() -> Self {
        if std::env::args().len() > 1 {
            return ProgramMode::Cli;
        }
        ProgramMode::Gui
    }
/// Checks the current mode of the program depending on the number of CLI arguments given.
Checks the current mode of the program depending on the number of CLI arguments given.
Checks the current mode of the program depending on the number of CLI arguments given .
pub fn check() -> Self {
        if std::env::args().len() > 1 {
            return ProgramMode::Cli;
        }
        ProgramMode::Gui
    }
pub fn check ( ) -> Self { if std :: env :: args ( ) . len ( ) > 1 { return ProgramMode :: Cli ; } ProgramMode :: Gui }
Checks the current mode of the program depending on the number of CLI arguments given.
Checks the current mode of the program depending on the number of CLI arguments given .