From 1ebf2b44c603643e1f0b34807920c23351561c13 Mon Sep 17 00:00:00 2001 From: Dexoron Date: Thu, 12 Feb 2026 01:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20he?= =?UTF-8?q?lp=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dcr/cli/help.py | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/dcr/cli/help.py b/src/dcr/cli/help.py index ffe211d..8d2231f 100644 --- a/src/dcr/cli/help.py +++ b/src/dcr/cli/help.py @@ -1,3 +1,33 @@ def help() -> int: - print("Help") + print( + "\n".join( + [ + "DCR (Dexoron Cargo Realization)", + "Менеджер C-проектов, вдохновленный Cargo.", + "", + "ИСПОЛЬЗОВАНИЕ:", + " dcr <команда> [опции]", + "", + "КОМАНДЫ:", + " new Создать новый проект", + " init Инициализировать текущую директорию как проект", + " build [--profile] Собрать проект (по умолчанию: --debug)", + " run [--profile] Собрать и запустить (по умолчанию: --debug)", + " clean Удалить директорию target", + " help Показать эту справку", + "", + "ОПЦИИ:", + " --debug Сборка с профилем debug", + " --release Сборка с профилем release", + "", + "ПРИМЕРЫ:", + " dcr new hello", + " dcr build --release", + " dcr run --debug", + "", + "ПОДСКАЗКА:", + " Запусти 'dcr <команда> --help' для справки по команде.", + ] + ) + ) return 0