From 59b6b5a299f1b5e802ea3f1a71a136df9a6a499a Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Sat, 4 Jan 2025 20:39:42 +0300 Subject: [PATCH] Fix the `milc.cli.subcommand_name` property value The implementation of the `subcommand_name` property in `MILCInterface` was wrong (it actually returned the `_subcommand` function object instead of the subcommand name). --- milc/milc_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milc/milc_interface.py b/milc/milc_interface.py index 092f725..74378df 100644 --- a/milc/milc_interface.py +++ b/milc/milc_interface.py @@ -84,8 +84,8 @@ def subcommands(self) -> Dict[str, Any]: return self.milc.subcommands @property - def subcommand_name(self) -> Any: - return self.milc._subcommand + def subcommand_name(self) -> Optional[str]: + return self.milc.subcommand_name def echo(self, text: str, *args: Any, **kwargs: Any) -> None: """Print colorized text to stdout.