Documentation - Cleanup function documentation output

This commit is contained in:
jonpas 2023-05-01 17:38:27 +02:00
parent 48a4e9682c
commit d279a8e607
3 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@
* 6: Tag Model <STRING> (default: "UserTexture1m_F") * 6: Tag Model <STRING> (default: "UserTexture1m_F")
* *
* Return Value: * Return Value:
* Sucessfully Added Tag <BOOL> * Successfully Added Tag <BOOL>
* *
* Example: * Example:
* ["ace_victoryRed", "Victory Red", "ACE_SpraypaintRed", ["path\to\texture1.paa", "path\to\texture2.paa"], "path\to\icon.paa"] call ace_tagging_fnc_addCustomTag * ["ace_victoryRed", "Victory Red", "ACE_SpraypaintRed", ["path\to\texture1.paa", "path\to\texture2.paa"], "path\to\icon.paa"] call ace_tagging_fnc_addCustomTag

View File

@ -10,7 +10,7 @@
* 3: Tag Model <STRING> (default: "UserTexture1m_F") * 3: Tag Model <STRING> (default: "UserTexture1m_F")
* *
* Return Value: * Return Value:
* Sucess <BOOL> * Success <BOOL>
* *
* Example: * Example:
* success = [player, "z\ace\addons\tagging\UI\tags\black\0.paa"] call ace_tagging_fnc_tag * success = [player, "z\ace\addons\tagging\UI\tags\black\0.paa"] call ace_tagging_fnc_tag

View File

@ -334,8 +334,9 @@ def crawl_dir(addons_dir, directory, debug=False, lint_private=False):
else: else:
errors += 1 errors += 1
print() if not debug:
errors += document_functions(addons_dir, components) print()
errors += document_functions(addons_dir, components)
if errors != 0: if errors != 0:
print("\n Unclean!\n {} errors".format(errors)) print("\n Unclean!\n {} errors".format(errors))