()
return True
Returns True if flag values are valid or prints error and returns False.
Returns True if flag values are valid or prints error and returns False.
Returns True if flag values are valid or prints error and returns False .
def _validate_flags():
  """Returns True if flag values are valid or prints error and returns False."""
  if FLAGS.list_ports:
    print("Input ports: '%s'" % (
        "', '".join(midi_hub.get_available_input_ports())))
    print("Ouput ports: '%s'" % (
        "', '".join(midi_hub.get_available_output_ports())))
    return False

  if FLAGS.bundle_files is None:
    print('--bundle_files must be specified.')
    return False

  if (len(FLAGS.bundle_files.split(',')) > 1 and
      FLAGS.generator_select_control_number is None):
    tf.logging.warning(
        'You have specified multiple bundle files (generators), without '
        'setting `--generator_select_control_number`. You will only be able to '
        'use the first generator (%s).',
        FLAGS.bundle_files[0])

  return True
def _validate_flags ( ) : if FLAGS . list_ports : print ( "Input ports: '%s'" % ( "', '" . join ( midi_hub . get_available_input_ports ( ) ) ) ) print ( "Ouput ports: '%s'" % ( "', '" . join ( midi_hub . get_available_output_ports ( ) ) ) ) return False if FLAGS . bundle_files is None : print ( '--bundle_files must be specified.' ) return False if ( len ( FLAGS . bundle_files . split ( ',' ) ) > 1 and FLAGS . generator_select_control_number is None ) : tf . logging . warning ( 'You have specified multiple bundle files (generators), without ' 'setting `--generator_select_control_number`. You will only be able to ' 'use the first generator (%s).' , FLAGS . bundle_files [ 0 ] ) return True