<s> import sys <EOL> import os <EOL> import argparse <EOL> def _move ( o , d ) : <EOL> os . rename ( o , d ) <EOL> def move ( origin , destination , interactive = False , force = False ) : <EOL> if interactive : <EOL> if os . path . isfile ( destination ) : <EOL> op = input ( '<STR_LIT>' ) <EOL> if op . lower ( ) == '<STR_LIT:y>' : <EOL> _move ( origin , destination ) <EOL> elif force : <EOL> _move ( origin , destination ) <EOL> else : <EOL> _move ( origin , destination ) <EOL> def main ( argv ) : <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( '<STR_LIT>' , action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , nargs = argparse . REMAINDER ) <EOL> argv = parser . parse_args ( ) <EOL> if len ( argv . files ) == <NUM_LIT:0> : <EOL> print ( '<STR_LIT>' ) <EOL> exit ( <NUM_LIT:0> ) <EOL> move ( argv . files [ <NUM_LIT:0> ] , argv . files [ <NUM_LIT:1> ] , argv . i , argv . f ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( sys . argv ) </s>
