You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"-l, --language=[language] 'Language to render the compiled book in.{n}\
16
-
Only valid if the [language] table in the config is not empty.{n}\
17
-
If omitted, builds all translations and provides a menu in the generated output for switching between them.'",
18
-
)
14
+
.arg(Arg::new("language").short('l').long("language").num_args(1).value_parser(clap::value_parser!(String)).help("Language to render the compiled book in.{n}\
15
+
Only valid if the [language] table in the config is not empty.{n}\
16
+
If omitted, builds all translations and provides a menu in the generated output for switching between them."))
19
17
}
20
18
21
19
// Build command implementation
22
20
pubfnexecute(args:&ArgMatches) -> Result<()>{
23
21
let book_dir = get_book_dir(args);
24
22
let opts = get_build_opts(args);
23
+
println!("llegan {:?}", opts.language_ident);
25
24
letmut book = MDBook::load_with_build_opts(&book_dir, opts)?;
"-l, --language=[language] 'Language to render the compiled book in.{n}\
16
-
Only valid if the [language] table in the config is not empty.{n}\
17
-
If omitted, builds all translations and provides a menu in the generated output for switching between them.'",
18
-
)
14
+
.arg(Arg::new("language").short('l').long("language").num_args(1).value_parser(clap::value_parser!(String)).help("Language to render the compiled book in.{n}\
15
+
Only valid if the [language] table in the config is not empty.{n}\
16
+
If omitted, builds all translations and provides a menu in the generated output for switching between them."))
"-l, --language=[language] 'Language to render the compiled book in.{n}\
49
-
Only valid if the [language] table in the config is not empty.{n}\
50
-
If omitted, builds all translations and provides a menu in the generated output for switching between them.'",
51
-
)
47
+
.arg(Arg::new("language").short('l').long("language").num_args(1).value_parser(clap::value_parser!(String)).help("Language to render the compiled book in.{n}\
48
+
Only valid if the [language] table in the config is not empty.{n}\
49
+
If omitted, builds all translations and provides a menu in the generated output for switching between them."))
0 commit comments