|
|
@ -11,6 +11,7 @@ pub struct Args {
|
|
|
|
pub load_tutor: bool,
|
|
|
|
pub load_tutor: bool,
|
|
|
|
pub verbosity: u64,
|
|
|
|
pub verbosity: u64,
|
|
|
|
pub files: Vec<(PathBuf, Position)>,
|
|
|
|
pub files: Vec<(PathBuf, Position)>,
|
|
|
|
|
|
|
|
pub edit_config: bool,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl Args {
|
|
|
|
impl Args {
|
|
|
@ -26,6 +27,7 @@ impl Args {
|
|
|
|
"--version" => args.display_version = true,
|
|
|
|
"--version" => args.display_version = true,
|
|
|
|
"--help" => args.display_help = true,
|
|
|
|
"--help" => args.display_help = true,
|
|
|
|
"--tutor" => args.load_tutor = true,
|
|
|
|
"--tutor" => args.load_tutor = true,
|
|
|
|
|
|
|
|
"--edit-config" => args.edit_config = true,
|
|
|
|
"--health" => {
|
|
|
|
"--health" => {
|
|
|
|
args.health = true;
|
|
|
|
args.health = true;
|
|
|
|
args.health_arg = argv.next_if(|opt| !opt.starts_with('-'));
|
|
|
|
args.health_arg = argv.next_if(|opt| !opt.starts_with('-'));
|
|
|
|