| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Introduce tags for free args in opt-parser | ilikepugs | 2025-12-23 | 1 | -5/+45 |
| | | | | | | | | | | ### Что случилось? - Появилась возможность размечать свободные аргументы тегами (хранятся как ui32-значения) - Теги могут быть статические (`.SetTag(ESomeTags::Tag1)`) и динамические (`.SetTag([] (const TString& a) {return a ? ESomeTags::Tag1 : ESomeTags::Tag2; })`). - После парсинга можно получить свободные аргументы с определенным тегом (`res.GetFreeArgs(ESomeTags::Tag1)`) commit_hash:c1a9d821da376538eb7e4251626052a9f03b941c | ||||
| * | Collect subcommand parts in getopt | ilikepugs | 2025-11-26 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | #### Проблема Из TOptsParseResult сейчас невозможно понять, какую команду вызвали. Существует метод [GetProgrammName](https://nda.ya.ru/t/SdJXhPQC7NczPm, который частично решает эту задачу, однако: 1. Его поведение зависит от флага [PrintShortCommandInUsage](https://nda.ya.ru/t/3sh6_wPV7NczPt Выставление флага меняет вывод `help` 2. Даже с флагом метод отдает одну строку вместе с запускаемым бинарем. Если хочется отделить только submod'ы, то эту строку приходится сплитить. #### Решение Добавил всюду где нужно InvocationParts, которые заполняются по ходу парсинга входных аргументов. В конечном итоге эти parts передаются в TOptsParseResult, откуда могут быть получены вызывающей стороной. commit_hash:4cf72141552793b19a725b3d394b81215508b85f | ||||
| * | [getopt] Add typo check for long options | lightqwant | 2022-09-01 | 1 | -0/+20 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 2 of 2. | amatanhead | 2022-02-10 | 1 | -6/+6 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 1 of 2. | amatanhead | 2022-02-10 | 1 | -6/+6 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 2 of 2. | yuraaka | 2022-02-10 | 1 | -10/+10 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 1 of 2. | yuraaka | 2022-02-10 | 1 | -10/+10 |
| | | |||||
| * | Restoring authorship annotation for Ilnur Khuziev <[email protected]>. ↵ | Ilnur Khuziev | 2022-02-10 | 1 | -34/+34 |
| | | | | | Commit 2 of 2. | ||||
| * | Restoring authorship annotation for Ilnur Khuziev <[email protected]>. ↵ | Ilnur Khuziev | 2022-02-10 | 1 | -34/+34 |
| | | | | | Commit 1 of 2. | ||||
| * | Restoring authorship annotation for Anton Samokhvalov <[email protected]>. ↵ | Anton Samokhvalov | 2022-02-10 | 1 | -110/+110 |
| | | | | | Commit 2 of 2. | ||||
| * | Restoring authorship annotation for Anton Samokhvalov <[email protected]>. ↵ | Anton Samokhvalov | 2022-02-10 | 1 | -110/+110 |
| | | | | | Commit 1 of 2. | ||||
| * | intermediate changes | Devtools Arcadia | 2022-02-07 | 1 | -0/+160 |
| ref:cde9a383711a11544ce7e107a78147fb96cc4029 | |||||
