<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp/getopt/small/modchooser.cpp, branch CLI_2.30.0</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=CLI_2.30.0</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=CLI_2.30.0'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2025-11-26T06:52:47Z</updated>
<entry>
<title>Collect subcommand parts in getopt</title>
<updated>2025-11-26T06:52:47Z</updated>
<author>
<name>ilikepugs</name>
<email>ilikepugs@yandex-team.com</email>
</author>
<published>2025-11-26T06:37:33Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=3344ce008b1318a27b236192ceb4fb5567ba926e'/>
<id>urn:sha1:3344ce008b1318a27b236192ceb4fb5567ba926e</id>
<content type='text'>
#### Проблема

Из 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
</content>
</entry>
<entry>
<title>[vcs]modchooser -h should not print colored if not TTY</title>
<updated>2024-03-28T16:00:40Z</updated>
<author>
<name>tldr</name>
<email>tldr@yandex-team.com</email>
</author>
<published>2024-03-28T15:47:44Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=bb09dae0c6200b95c94dcab806f758368955b08d'/>
<id>urn:sha1:bb09dae0c6200b95c94dcab806f758368955b08d</id>
<content type='text'>
56651679ad5f4f41f350a3f125a5604495e64dae
</content>
</entry>
<entry>
<title>getopt: print help either to Cerr or Cout, configuring by option</title>
<updated>2023-06-06T21:12:42Z</updated>
<author>
<name>dimdim11</name>
<email>dimdim11@yandex-team.com</email>
</author>
<published>2023-06-06T21:12:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=5dfc708d4bbd53d9fbd627d7753f4c3a27cda532'/>
<id>urn:sha1:5dfc708d4bbd53d9fbd627d7753f4c3a27cda532</id>
<content type='text'>
Fix arc help output</content>
</entry>
<entry>
<title>rm unused includes + cleanup</title>
<updated>2022-07-30T11:29:06Z</updated>
<author>
<name>tobo</name>
<email>tobo@yandex-team.com</email>
</author>
<published>2022-07-30T11:29:06Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=5cfa8b89b44d6e426aab0be7b64ccf37ea364217'/>
<id>urn:sha1:5cfa8b89b44d6e426aab0be7b64ccf37ea364217</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;sinay@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:55Z</updated>
<author>
<name>sinay</name>
<email>sinay@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:55Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=de3b858ab298fa807404fb6eda460cd4f7cbc5dd'/>
<id>urn:sha1:de3b858ab298fa807404fb6eda460cd4f7cbc5dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;sinay@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:55Z</updated>
<author>
<name>sinay</name>
<email>sinay@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:55Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=21bdf2a6808c38c2a42f8a425f610ee69b196946'/>
<id>urn:sha1:21bdf2a6808c38c2a42f8a425f610ee69b196946</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;alejandro@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:54Z</updated>
<author>
<name>alejandro</name>
<email>alejandro@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:54Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=5869816f52682d8febca3791efc951b018a6fc13'/>
<id>urn:sha1:5869816f52682d8febca3791efc951b018a6fc13</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;alejandro@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:54Z</updated>
<author>
<name>alejandro</name>
<email>alejandro@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:54Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=a24597741ed0c290312a4e021954d5088e5281a8'/>
<id>urn:sha1:a24597741ed0c290312a4e021954d5088e5281a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;steplg@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:54Z</updated>
<author>
<name>steplg</name>
<email>steplg@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:54Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=18b9863882c0f9638e4a6599acbcdfe6109d5da0'/>
<id>urn:sha1:18b9863882c0f9638e4a6599acbcdfe6109d5da0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;steplg@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:54Z</updated>
<author>
<name>steplg</name>
<email>steplg@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:54Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=d385578a0e719dc19758dbdef4ca862726ce22a7'/>
<id>urn:sha1:d385578a0e719dc19758dbdef4ca862726ce22a7</id>
<content type='text'>
</content>
</entry>
</feed>
