mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-23 19:49:58 -04:00
Print help if no subcommands
This commit is contained in:
parent
9c5bef632d
commit
5e36fa66e2
@ -13,6 +13,8 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
mod cli;
|
mod cli;
|
||||||
|
|
||||||
|
use std::env;
|
||||||
|
|
||||||
use recipes::Recipe;
|
use recipes::Recipe;
|
||||||
|
|
||||||
use clap;
|
use clap;
|
||||||
@ -32,6 +34,7 @@ where
|
|||||||
(@arg INPUT: +required "Input recipe file to parse")
|
(@arg INPUT: +required "Input recipe file to parse")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn output_recipe_info(r: Recipe, print_ingredients: bool) {
|
fn output_recipe_info(r: Recipe, print_ingredients: bool) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user