remove needless function
insert command option separator '--' before pattern
add construct-command tests
add validate regexp function tests
add transform line function tests