aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-11 19:19:51 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-11 19:19:51 +0300
commita5e3fd21b18a60d4b16b17c7debfd2469e776327 (patch)
tree77490f16d921a0bd0d676440a53ad4afdf673580 /tools
parent4195e59fbdfe8b1e6384ec5b94e3e4abc185c05f (diff)
downloadydb-a5e3fd21b18a60d4b16b17c7debfd2469e776327.tar.gz
intermediate changes
ref:83e9f4e19f75e3a051405e8e6a99b039d66c6d25
Diffstat (limited to 'tools')
-rw-r--r--tools/rescompiler/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/rescompiler/main.cpp b/tools/rescompiler/main.cpp
index b5f50cea2d..98a5b9413b 100644
--- a/tools/rescompiler/main.cpp
+++ b/tools/rescompiler/main.cpp
@@ -49,7 +49,11 @@ int main(int argc, char** argv) {
TVector<TString> items = StringSplitter(TString(*(argv + 1))).Split('=').Limit(2).ToList<TString>();
GenOne(TString(items[1]), TString(items[0]), out);
} else {
- GenOne(TUnbufferedFileInput(*argv).ReadAll(), *(argv + 1), out);
+ const char* key = *(argv + 1);
+ if (*key == '-') {
+ ++key;
+ }
+ GenOne(TUnbufferedFileInput(*argv).ReadAll(), key, out);
}
argv += 2;
}