class EL_APPLICATION_COMMAND_OPTIONS

(source code)

Client examples: EROS_APPLICATION_COMMAND_OPTIONSFTP_LOGIN_OPTIONSTEST_WORK_DISTRIBUTER_COMMAND_OPTIONS

Description

Command line options for app-manage.ecf library accessible from EL_SHARED_APPLICATION_OPTION

note
	description: "[
		Command line options for `app-manage.ecf' library accessible from [$source EL_SHARED_APPLICATION_OPTION]
	]"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2020-01-20 9:08:22 GMT (Monday 20th January 2020)"
	revision: "5"

class
	EL_APPLICATION_COMMAND_OPTIONS

inherit
	EL_COMMAND_LINE_OPTIONS

create
	make, make_default

feature -- Access

	ask_user_to_quit: BOOLEAN
		-- `True' if command line option of same name exists
		-- Prompt user to quit when sub-application finishes (EL_SUB_APPLICATION)

	help: BOOLEAN
		-- `True' if command line option of same name exists
		-- Args.character_option_exists ({EL_COMMAND_OPTIONS}.Help [1]) or else
		-- This doesn't work because of a bug in {ARGUMENTS_32}.option_character_equal

	no_app_header: BOOLEAN
		-- `True' if command line option of same name exists

	test: BOOLEAN

feature -- Constants

	sub_app: TUPLE [install, remove_data, uninstall: STRING]
		-- Installer sub-application constants
		once
			create Result
			Tuple.fill (Result, "install, remove_data, uninstall")
		end

feature {NONE} -- Constants

	Help_text: STRING
		once
			Result := "[
				ask_user_to_quit:
					Prompt user to quit before exiting application
				help:
					Show application help
				no_app_header:
					Suppress output of application information
				test:
					Put application in test mode (if testable)
			]"
		end

end