new warning when triggers or aliases overlap

This commit is contained in:
2025-05-10 21:31:59 +03:00
parent ea2d068022
commit cbf7d3c578
5 changed files with 70 additions and 86 deletions
+4 -1
View File
@@ -17,10 +17,13 @@ copy_flags = Flags(
Flag('recursive', '--', False), # Булевый флаг без значения
Flag('force', '-', False) # Короткий булевый флаг
)
@file_router.command(Command('case', aliases=['cp', 'ch']))
def handler(response: Response):
print('test')
# Регистрация команды копирования
@file_router.command(Command(
trigger="copy",
trigger="ch",
description="Копирование файлов",
flags=copy_flags,
aliases=["cp"]