From 2affb3567dc7fb42e97da8d5bc7a6b89bdbceb8d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 15 Oct 2023 18:46:35 +0200 Subject: Add docs --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 0694aa5..1859606 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,9 +8,12 @@ use nix::unistd::Pid; #[derive(Parser)] #[command(author, version, about, long_about = None)] struct Args { + /// Command to execute from ptrace command: String, } +/// Create a fork of the program and execute the process in the child. Parent gets the pid +/// value and trace it. fn main() -> anyhow::Result<()> { let args = Args::parse(); -- cgit v1.2.3-18-g5258