Home Explore Blog CI



083f3b837855a21f01d7edd0664ea33dd08a0c5b36e5ec8e000000020000f384.png

Extracted Text
#![feature(crate_visibility_modifier)] #![feature(in_band_lifetimes)] #![feature(async_await)] #![feature(try_trait)] #![feature(bind_by_move_pattern_guards)] use clap:: {App, Arg}; use log:: LevelFilter; use std::error:: Error; fn main() -> Result<(), Box<dyn Error>> { let matches = App::new("nushell") .version("0.1.3") .arg( Arg::with_name("loglevel") ) .arg( .short("l") .long("loglevel") .value_name("LEVEL") .possible_values(&["error", "warn", "info", "debug", "trace"]) .takes_value(true), Arg::with_name("develop") .long("develop") .multiple(true) [ESC to quit, arrow keys to move]
Explanation
The image contains rust source code. The source code uses 'clap' library to handle command line arguments and 'log' crate for logging purposes. It defines a main function that returns a Result type, indicating potential error handling. The code defines arguments for log level and develop mode.