# frozen_string_literal: true module Command class NoCommand < Base NAME = "no-command" OPTIONS = [version_option].freeze DESCRIPTION = "Called when no command was specified" LONG_DESCRIPTION = <<~DESC - Called when no command was specified DESC HIDE = true WITH_INFO_HEADER = false VALIDATIONS = [].freeze def call if config.options[:version] Cpflow::Cli.start(["version"]) else Cpflow::Cli.start(["help"]) end end end end