mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Print help if no subcommands
This commit is contained in:
parent
9c5bef632d
commit
5e36fa66e2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user