summaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/ut
Commit message (Collapse)AuthorAgeFilesLines
* Introduce tags for free args in opt-parserilikepugs2025-12-231-0/+70
| | | | | | | | | ### Что случилось? - Появилась возможность размечать свободные аргументы тегами (хранятся как 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-262-0/+66
| | | | | | | | | | | | | | | | #### Проблема Из 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
* Intermediate changesrobot-piglet2025-09-041-0/+32
| | | | commit_hash:953617f2251dbf97b237f24d08a7b08816adb90b
* Intermediate changesrobot-piglet2025-09-031-36/+34
| | | | commit_hash:c0bcabe40fb4e3cad8e7b18076d6034df2bc5b49
* [arc][getopt]fix enforcment of RequiredArgument().DisableSpaceParse()tldr2024-11-211-0/+13
| | | | commit_hash:9c2ada5b95be3f810d2750406d74d839bd2598ff
* add ymake export to ydbalexv-smirnov2023-06-131-0/+13
|
* Revert ymake build from ydb oss exportalexv-smirnov2023-03-281-13/+0
|
* add library/cpp/actors, ymake build to ydb oss exportalexv-smirnov2023-03-151-0/+13
|
* Allow to use std::vector in AppendToar7is72022-12-231-1/+7
|
* [getopt] Add typo check for long optionslightqwant2022-09-011-0/+25
|
* Allow skip arg in opt parserbulatkhr2022-07-151-0/+34
| | | add UnnecessaryArgument
* intermediate changesarcadia-devtools2022-03-151-15/+0
| | | | ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.nikkon2022-02-101-29/+29
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.nikkon2022-02-101-29/+29
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.steplg2022-02-101-5/+5
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.steplg2022-02-101-5/+5
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.moskupols2022-02-101-13/+13
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.moskupols2022-02-101-13/+13
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.amatanhead2022-02-103-104/+104
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.amatanhead2022-02-103-104/+104
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.alex-sh2022-02-101-10/+10
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.alex-sh2022-02-101-10/+10
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.yoda2022-02-101-14/+14
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.yoda2022-02-101-14/+14
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.chegoryu2022-02-101-24/+24
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.chegoryu2022-02-101-24/+24
|
* Restoring authorship annotation for Alexey Salmin <[email protected]>. ↵Alexey Salmin2022-02-101-56/+56
| | | | Commit 2 of 2.
* Restoring authorship annotation for Alexey Salmin <[email protected]>. ↵Alexey Salmin2022-02-101-56/+56
| | | | Commit 1 of 2.
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.kaa2022-02-101-10/+10
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.kaa2022-02-101-10/+10
|
* Restoring authorship annotation for Vasily Gerasimov ↵Vasily Gerasimov2022-02-101-55/+55
| | | | <[email protected]>. Commit 2 of 2.
* Restoring authorship annotation for Vasily Gerasimov ↵Vasily Gerasimov2022-02-101-55/+55
| | | | <[email protected]>. Commit 1 of 2.
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.dobrokot2022-02-101-24/+24
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.dobrokot2022-02-101-24/+24
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.nkmakarov2022-02-102-40/+40
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.nkmakarov2022-02-102-40/+40
|
* Restoring authorship annotation for Arslan Urtashev <[email protected]>. ↵Arslan Urtashev2022-02-101-3/+3
| | | | Commit 2 of 2.
* Restoring authorship annotation for Arslan Urtashev <[email protected]>. ↵Arslan Urtashev2022-02-101-3/+3
| | | | Commit 1 of 2.
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.albert2022-02-102-44/+44
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.albert2022-02-102-44/+44
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.melkov2022-02-101-17/+17
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.melkov2022-02-101-17/+17
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.nga2022-02-104-439/+439
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.nga2022-02-104-439/+439
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.diver2022-02-101-10/+10
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.diver2022-02-101-10/+10
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.tobo2022-02-101-1/+1
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.tobo2022-02-101-1/+1
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.agorodilov2022-02-102-14/+14
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.agorodilov2022-02-102-14/+14
|