diff options
| author | Scott Lawrence <scott+git@ineffectivetheory.com> | 2024-11-28 10:35:38 -0700 |
|---|---|---|
| committer | Scott Lawrence <scott+git@ineffectivetheory.com> | 2024-11-28 10:35:38 -0700 |
| commit | 31926e63a3764ceaafbcb35e85254c0c0adde1a6 (patch) | |
| tree | 8793b329152eb659b260585cac8e4a9322f62aff | |
| parent | 4a85d94aae144ab988b647702e3f1051ca6afa7f (diff) | |
| download | varanus-31926e63a3764ceaafbcb35e85254c0c0adde1a6.tar.gz varanus-31926e63a3764ceaafbcb35e85254c0c0adde1a6.tar.bz2 varanus-31926e63a3764ceaafbcb35e85254c0c0adde1a6.zip | |
All the options that are not yet used
| -rw-r--r-- | src/main.rs | 10 | ||||
| -rw-r--r-- | varanus.1 | 11 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8647734..053bf09 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,6 +89,12 @@ struct Cli { delay: f64, #[arg(short='s', long, default_value="varanus.sock")] socket: String, + #[arg(short='f', long)] + format: String, + #[arg(long)] + power: bool, + #[arg(long)] + memory: bool, } #[derive(Debug, Serialize, Deserialize, Default)] @@ -294,7 +300,9 @@ fn main() { } } else { match get_state(args.socket.clone()) { - Ok(state) => println!("{:#?}", state), + Ok(state) => { + println!("{:#?}", state) + }, Err(_) => eprintln!("Couldn't open {}", &args.socket) } } @@ -9,10 +9,12 @@ varanus \- description . .SY "varanus" .RI [\-s\~ socket ] +.RI [\-f\~ format ] .YS .SH DESCRIPTION .SS Daemon .SS Querying +.SS Format strings . .SH OPTIONS .TP @@ -22,9 +24,18 @@ Start daemon. Without this option, \fBvaranus\fR is started in client mode (prod \fB\-D\fR, \fB\-\-delay\fR (Daemon only) .TP +\fB\-f\fR, \fB\-\-format\fR +Format string for querying the monitor. +.TP \fB\-h\fR, \fB\-\-help\fR Display help: primarily, a summary of all options. .TP +\fB\-\-power\fR +Display only a summary of power +.TP +\fB\-\-memory\fR +Display only a summary of memory +.TP \fB\-s\fR, \fB\-\-socket\fR Socket file .TP |
