summaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/last_getopt_parse_result.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce tags for free args in opt-parserilikepugs2025-12-231-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 getoptilikepugs2025-11-261-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 optionslightqwant2022-09-011-0/+20
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.amatanhead2022-02-101-6/+6
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.amatanhead2022-02-101-6/+6
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.yuraaka2022-02-101-10/+10
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.yuraaka2022-02-101-10/+10
|
* Restoring authorship annotation for Ilnur Khuziev <[email protected]>. ↵Ilnur Khuziev2022-02-101-34/+34
| | | | Commit 2 of 2.
* Restoring authorship annotation for Ilnur Khuziev <[email protected]>. ↵Ilnur Khuziev2022-02-101-34/+34
| | | | Commit 1 of 2.
* Restoring authorship annotation for Anton Samokhvalov <[email protected]>. ↵Anton Samokhvalov2022-02-101-110/+110
| | | | Commit 2 of 2.
* Restoring authorship annotation for Anton Samokhvalov <[email protected]>. ↵Anton Samokhvalov2022-02-101-110/+110
| | | | Commit 1 of 2.
* intermediate changesDevtools Arcadia2022-02-071-0/+160
ref:cde9a383711a11544ce7e107a78147fb96cc4029