1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
use clap::Parser;
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
pub struct Args {
/// Command to execute from ptrace
#[arg(short, long)]
pub command: Option<String>,
/// Attach the tracing to an existing process ID. We're using the `-p` short flag because
/// strace uses it
#[arg(short = 'p', long)]
pub attach: Option<i32>,
/// Show only defined sys calls. Multi values separated by comma `,`
#[arg(short = 'f', long)]
pub filter: Option<String>,
/// Write the output to a file instead of the standard output
#[arg(long = "file")]
pub file_to_print: Option<String>,
/// If defined, it hides the TUI
#[arg(long = "no-tui", default_value_t = false)]
pub no_tui: bool,
}
|