Skip to content

Commit e13c72c

Browse files
committed
complaince_tool: clean up
The help output of the compliance tool is cleaned. Old fragments of the long ago removed schema-checking functionality were still in place.
1 parent 3f106bc commit e13c72c

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

compliance_tool/aas_compliance_tool/cli.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,19 @@ def parse_cli_arguments() -> argparse.ArgumentParser:
3737
'Asset Administration Shell" specification of Plattform Industrie 4.0. \n\n'
3838
'This tool has five features: \n'
3939
'1. create a xml or json file or an AASX file using xml or json files with example aas elements\n'
40-
'2. check if a given xml or json file is compliant with the official json or xml aas schema and '
41-
'is deserializable\n'
40+
'2. check if a given xml or json file is deserializable and therefore compliant with the schema\n'
4241
'3. check if the data in a given xml, json or aasx file is the same as the example data\n'
4342
'4. check if two given xml, json or aasx files contain the same aas elements in any order\n\n'
44-
'As a first argument, the feature must be specified (create, schema, deserialization, example, '
45-
'files) or in short (c, s, d, e or f).\n'
43+
'As a first argument, the feature must be specified (create, deserialization, example, '
44+
'files) or in short (c, d, e or f).\n'
4645
'Depending the chosen feature, different additional arguments must be specified:\n'
4746
'create or c: path to the file which shall be created (file_1)\n'
4847
'deseriable or d: file to be checked (file_1)\n'
4948
'example or e: file to be checked (file_1)\n'
5049
'file_compare or f: files to compare (file_1, file_2)\n,'
5150
'In any case, it must be specified whether the (given or created) files are json (--json) or '
5251
'xml (--xml).\n'
53-
'All features except "schema" support reading/writing AASX packages instead of plain XML or JSON '
52+
'All features support reading/writing AASX packages instead of plain XML or JSON '
5453
'files via the --aasx option.\n\n'
5554
'Additionally, the tool offers some extra features for more convenient usage:\n\n'
5655
'a. Different levels of verbosity:\n'
@@ -63,7 +62,7 @@ def parse_cli_arguments() -> argparse.ArgumentParser:
6362
' With -l or --logfile, a path to the file where the logfiles shall be created can be specified.',
6463
formatter_class=argparse.RawTextHelpFormatter)
6564

66-
parser.add_argument('action', choices=['create', 'c', 'schema', 's', 'deserialization', 'd', 'example', 'e',
65+
parser.add_argument('action', choices=['create', 'c', 'deserialization', 'd', 'example', 'e',
6766
'files', 'f'],
6867
help='c or create: creates a file with example data\n'
6968
'd or deserialization: checks if a given file is compliance with the official schema and '

compliance_tool/aas_compliance_tool/state_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Status(enum.IntEnum):
2626
:cvar NOT_EXECUTED:
2727
"""
2828
SUCCESS = 0
29-
SUCCESS_WITH_WARNINGS = 1
29+
SUCCESS_WITH_WARNINGS = 1 # never used
3030
FAILED = 2
3131
NOT_EXECUTED = 3
3232

0 commit comments

Comments
 (0)