def get_f_option(opts):
 for (opt, arg) in opts:
  if (opt == '-f'):
   return arg
 else:
  return None

def get_f_option ( opts ) : for ( opt , arg ) in opts : if ( opt == '-f' ) : return arg else : return None
return value of the -f option .