Allow setting entrypoint from CLI

This commit is contained in:
2026-04-07 18:02:03 +02:00
parent 83bd4305c7
commit 17f0e84005
3 changed files with 112 additions and 3 deletions

View File

@@ -62,6 +62,10 @@ pub struct Args {
#[arg(long = "bwrap-arg", value_name = "ARG", action = clap::ArgAction::Append)]
pub bwrap_args: Vec<String>,
/// Run this binary with the trailing args as its arguments
#[arg(long, value_name = "CMD")]
pub entrypoint: Option<String>,
/// Command and arguments to run inside the sandbox
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
pub command_and_args: Vec<OsString>,