mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-08 15:52:26 +01:00
merge changed from 18.11 into trunk.
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2151 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
[[Property:modification_date|Mon, 24 Dec 2018 08:49:05 GMT]]
|
||||
[[Property:publication_date|Mon, 24 Dec 2018 08:45:22 GMT]]
|
||||
[[Property:title|EiffelStudio: Using command line options]]
|
||||
[[Property:link_title|Using command line options]]
|
||||
[[Property:weight|1]]
|
||||
@@ -19,8 +21,8 @@ The usage and options display gives you information about which options are vali
|
||||
|
||||
Usage and options of the command line compiler vary from version to version in order to accommodate new and changed features. Here is an example of the command line help from the latest version of EiffelStudio:
|
||||
|
||||
<code lang="text">
|
||||
ISE EiffelStudio version 14.05.9.5158 GPL Edition - win64
|
||||
<code lang="none">
|
||||
ISE EiffelStudio version 18.11.10.2549 GPL Edition - win64
|
||||
|
||||
Usage:
|
||||
ec [-help | [-compat | -experiment] | -version | -full
|
||||
@@ -40,22 +42,24 @@ Usage:
|
||||
-implementers [-filter filtername] class feature |
|
||||
-callers [-filter filtername] [-show_all] [-assigners | -creators] class feature |
|
||||
-callees [-filter filtername] [-show_all] [-assignees | -creators] class feature |
|
||||
[[-config config.ecf] [-target target] |
|
||||
-ace Ace (obsolete) | -project Project_file_name (obsolete)] |
|
||||
[[-config config.ecf] [-target target] [-config_option option]|
|
||||
[class_file.e [-library library_name]] |
|
||||
-stop | -no_library |
|
||||
-project_path Project_directory_path | -file File |
|
||||
-code-analysis [-cadefaults | -caloadprefs pref_file | -caclasses class ...] |
|
||||
-ca_class (-all | class) | -ca_default | -ca_rule rule | -ca_setting file |
|
||||
-gc_stats]
|
||||
|
||||
Options:
|
||||
default (no option): quick melt the system.
|
||||
|
||||
-ace: specify the Ace file (obsolete).
|
||||
-ancestors: show the ancestors of a class.
|
||||
-aversions: show the ancestor versions of a feature.
|
||||
-batch: launch the compilation without user request.
|
||||
-c_compile: launch C compilation if needed.
|
||||
-ca_class: analyze code of a class or of all non-library classes (-all).
|
||||
-ca_default: restore default code analyzer preferences.
|
||||
-ca_rule: activate code analyzer rule(s) (with settings).
|
||||
-ca_setting: load code analyzer preferences from a file.
|
||||
-callees: show the callees of a feature.
|
||||
-callers: show the callers of a feature.
|
||||
-class_file.e: specify a class file for single file compilation.
|
||||
@@ -63,6 +67,7 @@ Options:
|
||||
-clients: show the clients of a class.
|
||||
-compat: enable pre-attached type compatibility.
|
||||
-config: specify the configuration (ECF) file.
|
||||
-config_option: override configuration options of a target.
|
||||
-debug: debug the system as a command loop.
|
||||
-descendants: show the descendants of a class.
|
||||
-dversions: show the descendant versions of a feature.
|
||||
@@ -181,31 +186,29 @@ To produce documentation for a view other than ''Text'', use its option in the c
|
||||
ec -flatshort -filter html-stylesheet -all -config application.ecf
|
||||
</code>
|
||||
|
||||
==Commands for Eiffel Inspector==
|
||||
To start the Eiffel Inspector you need to pass the '''-code-analysis''' command line options. If no other options are given, it will analyze the whole system. To specify some preferences, enable specific rules or analyze part of a system, you will need to provide some more options described below:
|
||||
==Commands for the Code Analyzer==
|
||||
The Code Analyzer is invoked when an option to analyze the whole system or a particular class is specified in the command line. Additional command-line options are used to specify some preferences and to enable specific rules:
|
||||
|
||||
<code lang="text">
|
||||
ec -config project.ecf -code-analysis [-cadefaults | -caloadprefs pref_file | -caclasses "CLASS1 CLASS2" |
|
||||
-caforcerules "RULE1 (First preference=1, Second preference=2) RULE2"]
|
||||
<code lang="shell">
|
||||
ec -config project.ecf [-ca_class (-all | <CLASS_NAME(S)>) | -ca_default | -ca_rule <RULE_SPEC(S)> | -ca_setting <FILE_NAME>]
|
||||
</code>
|
||||
|
||||
; -cadefaults : If provided, all preferences regarding the analysis will be reset to their default values (before the analysis is run). For example this leads to enabling all rules that are enabled by default, no matter whether they have been disabled before.
|
||||
;<code lang="shell">-ca_default</code>: Requests to reset all Code Analyzer preferences to their default values before the analysis is run. For example, this enables all rules that are enabled by default, no matter whether they have been disabled before.
|
||||
|
||||
; -caloadprefs : Use preferences from ''pref_file'', an XML file containing the code analysis preferences. ''pref_file'' can be generated by exporting the current preferences in the GUI.
|
||||
;<code lang="shell">-ca_setting</code>: Requests to use preferences from the specified file. The file is generated by exporting the current preferences from the GUI.
|
||||
|
||||
; -caclass : Followed by a list of class names (without file extension ''.e'') of the classes that shall be analyzed. If omitted then the whole system will be analyzed. If more than one class is to be specified, the list must be wrapped in double quotes. The class names can optionally be separated by semicolons ("CLASS1; CLASS2").
|
||||
;<code lang="shell">-ca_class</code>: Asks to analyze a given class or a set of classes. Several class names can be specified, separated either by spaces or semicolons. In that case, the argument may need to be enclosed in double quotes (e.g., `"CLASS1; CLASS2"`). A special value `-all` triggers analysis of the whole system.
|
||||
|
||||
; -caforcerules: Followed by a list of rules, enables those rules for the analysis and disables all the others, overriding the current preferences. Specific rule preferences can also be provided in parentheses. Preferences must be separated by commas. The class names can optionally be separated by semicolons. The following example summarizes the syntax of this option:
|
||||
;<code lang="shell">-ca_rule</code>: Followed by a list of rules, enables those rules for the analysis and disables all the others, overriding the current preferences. Specific rule preferences can also be provided in parentheses. Preferences are separated by commas. The rule names can optionally be separated by semicolons. Example:
|
||||
|
||||
<code lang="text">
|
||||
-caforcerules "RULE1; RULE2 (Maximum length threshold=20, Enable something=False); RULE3"
|
||||
<code lang="shell">
|
||||
-ca_rule "CA001; CA033 (maximum_feature_count=10; maximum_instruction_count=100); CA066 (enforce_prefix=False)"
|
||||
</code>
|
||||
|
||||
==Command options==
|
||||
|
||||
The table below lists the available ''options'', the arguments they require, and their effect:
|
||||
|
||||
|
||||
{| border="1"
|
||||
|-
|
||||
| width="175pt" | '''OPTION'''
|
||||
|
||||
Reference in New Issue
Block a user