Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,42 @@ pub fn cli() -> Command {
.help("Set timeout for download in seconds")
.value_parser(clap::value_parser!(u64))
)

.arg(Arg::new("recursive")
.action(ArgAction::SetTrue)
.required(false)
.long("recursive")
.help("Download the sources and all the dependency sources")
)

.arg(Arg::new("image")
.required(false)
.value_name("IMAGE NAME")
.short('I')
.long("image")
.help("Name of the Docker image to use")
.long_help(indoc::indoc!(r#"
Name of the Docker image to use.

Required because tree might look different on different images because of
conditions on dependencies.
"#))
)

.arg(Arg::new("env")
.required(false)
.action(ArgAction::Append)
.short('E')
.long("env")
.value_parser(env_pass_validator)
.help("Additional env to be passed when building packages")
.long_help(indoc::indoc!(r#"
Additional env to be passed when building packages.

Required because tree might look different on different images because of
conditions on dependencies.
"#))
)
)
.subcommand(Command::new("of")
.about("Get the paths of the sources of a package")
Expand Down
Loading