ClickHouse/docs/tools/translate/add_meta_flag.py

13 lines
242 B
Python
Raw Normal View History

2020-04-03 13:23:32 +00:00
#!/usr/bin/env python3
import sys
import util
if __name__ == '__main__':
flag_name = sys.argv[1]
path = sys.argv[2]
meta, content = util.read_md_file(path)
meta[flag_name] = True
util.write_md_file(path, meta, content)