fix upload bug
Move block 'overwrite' to class CmdLine