argument handling for add
add doesn't allow directories in place of filename