From f904f62d45c3d03b5ba0396d95a2ad47e77bca1b Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Wed, 17 Jan 2024 09:36:13 +0100 Subject: [PATCH] do not propagate version when using sub commands --- src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index a599400..3db2d5c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023 Comprehensive Cancer Center Mainfranken + * Copyright (c) 2024 Comprehensive Cancer Center Mainfranken * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -30,8 +30,8 @@ fn build_cli() -> Command { } #[derive(Parser)] -#[command(author, version, about, long_about = None)] -#[command(propagate_version = true, arg_required_else_help(true))] +#[command(author, version, about)] +#[command(arg_required_else_help(true))] pub struct Cli { #[command(subcommand)] pub cmd: SubCommand,