xref: /aosp_15_r20/external/angle/build/android/native_flags/argcapture.py (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#!/usr/bin/env python3
2# Copyright 2021 The Chromium Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5"""Writes arguments to a file."""
6
7import sys
8
9
10def main():
11  with open(sys.argv[1], 'w') as f:
12    f.write('\n'.join(sys.argv[2:]))
13    f.write('\n')
14
15
16if __name__ == '__main__':
17  main()
18