File: find_target.py

package info (click to toggle)
opencc 1.1.1%2Bgit20200624%2Bds2-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,288 kB
  • sloc: cpp: 5,688; python: 348; javascript: 133; makefile: 101; sh: 58
file content (12 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
from common import find_target_items

if len(sys.argv) != 3:
    print("Find the value keyword in all pairs")
    print(("Usage: ", sys.argv[0], "[input] [keyword]"))
    exit(1)

find_target_items(sys.argv[1], sys.argv[2])