Print help if no subcommands

This commit is contained in:
Jeremy Wall 2021-11-09 20:45:00 -05:00
parent 9c5bef632d
commit 5e36fa66e2

View File

@ -13,6 +13,8 @@
// limitations under the License.
mod cli;
use std::env;
use recipes::Recipe;
use clap;
@ -32,6 +34,7 @@ where
(@arg INPUT: +required "Input recipe file to parse")
)
)
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
}
fn output_recipe_info(r: Recipe, print_ingredients: bool) {