yield_line.py 168 B

1234567
  1. import sys
  2. if __name__ == '__main__':
  3. pos = sys.argv.index('--')
  4. with open(sys.argv[pos + 1], 'a') as f:
  5. f.write(' '.join(sys.argv[pos + 2:]) + '\n')