MCPcopy Create free account
hub / github.com/VSCodeConfigHelper/v4 / early_exit

Function early_exit

src-tauri/src/cli/args.rs:159–175  ·  view source on GitHub ↗
(args: &CliArgs)

Source from the content-addressed store, hash-verified

157}
158
159pub fn early_exit(args: &CliArgs) -> bool {
160 if args.help {
161 CliArgs::command().print_help().unwrap();
162 print_setup_help();
163 return true;
164 } else if args.version {
165 print!("{}", CliArgs::command().render_version());
166 println!(
167 r"Copyright (C) 2022 Guyutongxue
168本程序是自由软件;你可以再分发之和/或依照由自由软件基金会发布的
169GNU 通用公共许可证修改之,无论是版本 3 许可证,还是(按你的决定)
170任何以后版都可以。本程序不含任何保障。"
171 );
172 return true;
173 }
174 return false;
175}

Callers 1

cliFunction · 0.85

Calls 1

print_setup_helpFunction · 0.85

Tested by

no test coverage detected