Skip to content
Snippets Groups Projects
Verified Commit 5b6e0ebe authored by Anhad Singh's avatar Anhad Singh :crab:
Browse files

fix(runtime_deps_of): do not error out if no packages are specified


This may be the case if repo.sh did not build any TOML recipes. In that
case, we can just exit cleanly.

Signed-off-by: default avatarAnhad Singh <andypython@protonmail.com>
parent 78bf3a68
No related branches found
No related tags found
1 merge request!442fix(cookbook): add runtime dependencies to repo
......@@ -5,15 +5,10 @@ use std::{env::args, process::ExitCode};
const DEP_DEPTH: usize = 16;
fn usage() {
eprintln!("Usage: pkg_deps_of package1 [package2 ...]");
eprintln!("Usage: pkg_deps_of [package1 package2 ...]");
}
fn main() -> ExitCode {
if args().len() < 2 {
usage();
return ExitCode::FAILURE;
}
let names = args().skip(1).collect::<Vec<String>>();
let recipes = CookRecipe::new_recursive(&names, DEP_DEPTH, true).expect("recipe not found");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment