-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMK-14516
- Loading branch information
Showing
4 changed files
with
237 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use clap::{ArgAction, Parser}; | ||
use std::path::PathBuf; | ||
|
||
#[derive(Parser)] | ||
#[command(about = "Robotmk suite scheduler.")] | ||
pub struct Args { | ||
/// Configuration file path. | ||
#[arg(name = "CONFIG_PATH")] | ||
pub config_path: PathBuf, | ||
|
||
/// Log file path. If left unspecified, the program will log to standard error. | ||
#[arg(long, name = "LOG_PATH")] | ||
pub log_path: Option<PathBuf>, | ||
|
||
/// Enable verbose output. Use once (-v) for logging level INFO and twice (-vv) for logging | ||
/// level DEBUG. | ||
#[arg(short, long, action = ArgAction::Count)] | ||
pub verbose: u8, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
#![allow(dead_code)] | ||
pub mod attempt; | ||
mod cli; | ||
use clap::Parser; | ||
|
||
fn main() -> anyhow::Result<()> { | ||
let _args = cli::Args::parse(); | ||
Ok(()) | ||
} |