Command-line options are used to tell the ampersand compiler what to do. This page lists the available options.
--ECA--add-semantic-metamodel--altGraphics--atlas-without-terms--blackWhite--config=config.yaml--crowfoot--crud-defaults=CRUD--customizations=DIRECTORY [, DIRECTORY]*--dbName=NAME (-d)--dev, --ignore-invariant-violations--diagnosis--do-not-trim-cellvalues--export[=file] (-e)--force-reinstall-framework--fpa--fpa-excel--fspec=FORMAT (-f)--gen-as-rap-model--haskell--help (-h, -?)--services (-x)--language=LANG--meta-file--meta-tables--namespace=NAMESPACE--newNormalizer--noDiagnosis--noGraphics--oldNormalizer--outputDir=DIR (-o)--pop-xlsx--proofs--proto[=DIRECTORY] (-p)--prototype-framework-version=VERSION--reference-table--sampleConfigFile--sql-bin-tables--sqlHost=HOSTNAME--sqlLogin=USER--sqlPwd=PASSWORD--sqldump--test--testRule=RULE--uml--validate--verbose (-V)--version (-v)If you want to check your script, generate documentation, generate prototypes or use any other feature of Ampersand, you need to run the Ampersand compiler. This page tells you how.
docker run -it -v $(pwd):/scripts ampersandtarski/ampersanddocker run -it -v $PWD:/scripts ampersandtarski/ampersanddocker run -it -v "$(pwd)":/scripts ampersandtarski/ampersand COMMAND [OPTIONS] FILEampersand documentation --format docx --verbose Hawaii.adl # generates a specification document for Hawaii.adl
ampersand check Delivery.adl # just check Delivery.adl for errors
ampersand proto --proto-dir "D:\htdocs\CvM\" Contracts.adl # generate a prototype from Contracts.adl and write the application to the specified directory.
ampersand --help
ampersand --help --verbose
ampersand --versiondocumentation % ampersand documentation --help
Usage: ampersand documentation [--blackWhite] [--[no-]Intro] [--[no-]SharedLang]
[--[no-]Diagnosis] [--[no-]ConceptualAnalysis]
[--[no-]DataAnalysis] [--[no-]graphics]
[--[no-]text] --format FORMAT AMPERSAND_SCRIPT
[--sql-bin-tables] [--interfaces]
[--namespace NAMESPACE] [--crud-defaults CRUD]
[--[no-]trim-cellvalues] [--build-recipe RECIPE]
[--ignore-invariant-violations]
[--language OUTPUTLANGUAGE] [--[no-]legal-refs]
[--verbosity VERBOSITY | (-v|--verbose) |
--silent] [--[no-]time-in-log]
[--[no-]terminal] [--terminal-width INT]
[--output-dir DIR] [--help]
Generate a functional design document, to kick-start your functional
specification.
Available options:
--blackWhite avoid coloring conventions to facilitate readable
pictures in black and white.
--[no-]Intro Do or do not include chapter Intro in the generated
document.
--[no-]SharedLang Do or do not include chapter SharedLang in the
generated document.
--[no-]Diagnosis Do or do not include chapter Diagnosis in the
generated document.
--[no-]ConceptualAnalysis
Do or do not include chapter ConceptualAnalysis in
the generated document.
--[no-]DataAnalysis Do or do not include chapter DataAnalysis in the
generated document.
--[no-]graphics Enable/disable generation of graphics before
generating the document. (default: enabled)
--[no-]text Enable/disable generation the document file.
(default: enabled)
--format FORMAT The format in which the output is written.
AMPERSAND_SCRIPT The root file of your Ampersand model.
--sql-bin-tables Generate binary tables instead of broad tables in SQL
database, for testing purposes.
--interfaces Generate interfaces, which currently does not work.
--namespace NAMESPACE Prefix database identifiers with this namespace, to
isolate namespaces within the same
database. (default: "")
--crud-defaults CRUD Temporary switch to learn about the semantics of crud
in interface expressions. (default: "CRUD")
--[no-]trim-cellvalues Enable/disable ignoring the leading and trailing
spaces in .xlsx files that are INCLUDED in the
script. (default: enabled)
--build-recipe RECIPE Build the internal FSpec with a predefined recipe.
Allowd values are:
[Standard,Grind,Prototype,RAP] (default: "Standard")
--ignore-invariant-violations
ignore invariant violations. In case of the prototype
command, the generated prototype might not behave as
you expect. Documentation is not affected. This means
that invariant violations are reported anyway. (See
https://github.com/AmpersandTarski/Ampersand/issues/728)
--language OUTPUTLANGUAGE
Pick 'NL' for Dutch or 'EN' for English, as the
language to be used in your output. Without this
option, output is written in the language of your
context.
--[no-]legal-refs Enable/disable generation of a table of legal
references in Natural Language chapter of the output
document. (default: disabled)
--verbosity VERBOSITY Verbosity: silent, error, warn, info, debug
-v,--verbose Enable verbose mode: verbosity level "debug"
--silent Enable silent mode: verbosity level "silent"
--[no-]time-in-log Enable/disable inclusion of timings in logs, for the
purposes of using diff with logs (default: enabled)
--[no-]terminal Enable/disable overriding terminal detection in the
case of running in a false terminal
--terminal-width INT Specify the width of the terminal, used for
pretty-print messages
--output-dir DIR Specify the directory where your output will be
written to
--help Show this help text