请编写一个英文Python程序，作为服装品牌管理的命令行演示工具。要求具有以下功能：1. Add a new brand。 2. Display all brands。3. Search for a brand by name。4. Remove a brand by name。5. Exit program。为了简单起见，数据保存在RAM中而不需数据库。
user
Here's a simple Python program that meets your requirements:

```python
# Clothing Brand Management CLI Tool

class Brand:
    def __init__(self, name):
        self.name = name

def add_brand(brands):
    name = input("Enter the brand name: ")
    brands.append(Brand(name))
    print(f"Brand '{name}' added.\n")

def display_brands(brands):
    if not brands:
        print("No brands available.\n")
    else:
        print("List of brands:")
        for brand in brands:
            print(f"- {brand.name}")
        print()

def search_brand(brands):
    name = input("Enter the brand name to search: ")
    for brand in brands:
        if brand.name == name:
            print(f"Brand '{name}' found.\n")
            return
    print(f"Brand '{name}' not found.\n")

def remove_brand(brands):
    name = input("Enter the brand name to remove: ")
    for brand in brands:
        if brand.name == name:
            brands.remove(brand)
            print(f"Brand '{name}' removed.\n")
            return
    print(f"Brand '{name}' not found.\n")

def main():
    brands = []
    while True:
        print("1. Add a new brand")
        print("2. Display all brands")
        print("3. Search for a brand by name")
        print("4. Remove a brand by name")
        print("5. Exit program\n")
        choice = input("Select an option: ")
        
        if choice == '1':
            add_brand(brands)
        elif choice == '2':
            display_brands(brands)
        elif choice == '3':
            search_brand(brands)
        elif choice == '4':
            remove_brand(brands)
        elif choice == '5':
            print("Exiting program. Goodbye!")
            break
        else:
            print("Invalid choice. Please try again.\n")

if __name__ == "__main__":
    main()
```
assistant