improve datoms script

 * --cli flag
 * useful error message when no input file is provided