CLI is not most developed interface. Putting them into correct directory can help new users to avoid it as most of the use cases are from a language binding.
10 lines
207 B
Python
Executable File
10 lines
207 B
Python
Executable File
import sys
|
|
fo = open(sys.argv[2], 'w')
|
|
|
|
for l in open(sys.argv[1]):
|
|
arr = l.split(',')
|
|
fo.write('%s' % arr[0])
|
|
for i in range(len(arr) - 1):
|
|
fo.write(' %d:%s' % (i, arr[i+1]))
|
|
fo.close()
|