(self)
Fix tile checks for extract command
Fix tile checks for extract command
Fix tile checks for extract command
def validate_extract(self):
        """Fix tile checks for extract command"""
        if len(self.args.FILE) != 1:
            sys.exit("error: expected one ROM file, given: %s" %
                     " ".join(self.args.FILE))
        self.in1 = self.args.FILE[0]

        self.size = self.args.size
        if not self.size:
            sizein1 = os.path.getsize(self.in1)
            self.size = sizein1

        super(fix_converter, self).validate_extract()
def validate_extract ( self ) : if len ( self . args . FILE ) != 1 : sys . exit ( "error: expected one ROM file, given: %s" % " " . join ( self . args . FILE ) ) self . in1 = self . args . FILE [ 0 ] self . size = self . args . size if not self . size : sizein1 = os . path . getsize ( self . in1 ) self . size = sizein1 super ( fix_converter , self ) . validate_extract ( )