class VersionCommand(BaseHuggingfaceCLICommand):
    def __init__(self, args):
        self.args = args

    @staticmethod
    def register_subcommand(parser: _SubParsersAction):
        version_parser = parser.add_parser("version", help="Print information about the huggingface-cli version.")
        version_parser.set_defaults(func=VersionCommand)

    def run(self) -> None:
        print(f"huggingface_hub version: {__version__}")
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/src/huggingface_hub/commands/version.py