feat: -s flag for showing self when conterainerised

This commit is contained in:
Jack Wills
2022-12-04 21:42:07 +00:00
parent e3aa4420cb
commit c93870e5fb
5 changed files with 23 additions and 13 deletions
+5
View File
@@ -23,6 +23,10 @@ pub struct CliArgs {
#[clap(short = 'r', conflicts_with = "color")]
pub raw: bool,
/// Show self when running as a docker container
#[clap(short = 's')]
pub show_self: bool,
/// Don't draw gui - for debugging - mostly pointless
#[clap(short = 'g')]
pub gui: bool,
@@ -43,6 +47,7 @@ impl CliArgs {
color: args.color,
docker_interval: args.docker_interval,
gui: !args.gui,
show_self: !args.show_self,
raw: args.raw,
timestamp: !args.timestamp,
}