Skip to content

Commit

Permalink
Fix the milc.cli.subcommand_name property value (#73)
Browse files Browse the repository at this point in the history
The implementation of the `subcommand_name` property in `MILCInterface`
was wrong (it actually returned the `_subcommand` function object
instead of the subcommand name).
  • Loading branch information
sigprof authored Jan 4, 2025
1 parent a06ff93 commit 5d433b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions milc/milc_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5d433b3

Please sign in to comment.