code: def _argparse_minmax_type(self, string):
          
          value = float(string)
          if value < 0 or value > 8:
              raise argparse.ArgumentTypeError(
                  '%s must be between 0.0 and 8.0' % string,
              )
  
          return value
docs: Custom type for argparse to enforce value limits