summaryrefslogtreecommitdiffstats
path: root/pre_commit/meta_hooks/identity.py
blob: 730d0ec00658be9e865880dbcb8686dec0516d84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys
from typing import Optional
from typing import Sequence

from pre_commit import output


def main(argv: Optional[Sequence[str]] = None) -> int:
    argv = argv if argv is not None else sys.argv[1:]
    for arg in argv:
        output.write_line(arg)
    return 0


if __name__ == '__main__':
    exit(main())