diff --git a/mpsd-software-environment.py b/mpsd-software-environment.py index 1d82a37accc21c6cc656ec2400a5a4fbe6489ce2..54803f6077d1a1eb904607b9d9738449ecf227b0 100755 --- a/mpsd-software-environment.py +++ b/mpsd-software-environment.py @@ -386,15 +386,14 @@ def main(): ) if cmd in ["install", "reinstall", "remove"]: # "install" command needs additional documentation - if cmd == "install": - help_part2 = ( - "Use '--toolchains ALL' to " - "install all toolchains. If '--toolchain' is not " - "specified, list available toolchains for the release " - "(after environment has been prepared if not done yet)." - ) - else: - help_part2 = "" + tool_chain_help = ( + f"Pass a list of toolchains to command {cmd}. " + "Use '--toolchains ALL' to " + f"{cmd} all toolchains. If '--toolchain' is not " + "specified, list available toolchains for the release " + "(after environment has been prepared if not done yet)." + ) + subp.add_argument( "--toolchains", # first option defines attribute # name `args.toolchains` in `args = parser_args()` @@ -404,7 +403,7 @@ def main(): dest="toolchains", nargs="+", default="NONE", - help=f"List of toolchains to {cmd}. " + help_part2, + help=tool_chain_help, ) subp.add_argument( "--enable-build-cache",