input directories are passed in command like arguments