summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2023-07-06 11:09:56 +1000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2023-10-28 11:53:20 +0000
commit336b9bcf8cc6e84f67aaa1d25193f8db8670ef33 (patch)
tree0f414dffeaa0f9ee8e341882478476aef1dcbbe8
parentb39d2560cedf28478caf3e128d350589fdefe6ce (diff)
scripts/symbols-tree: print a better --help
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rwxr-xr-xscripts/symbols-tree.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/symbols-tree.py b/scripts/symbols-tree.py
index 32214dff..d345480b 100755
--- a/scripts/symbols-tree.py
+++ b/scripts/symbols-tree.py
@@ -163,7 +163,16 @@ def list_sections(sections, filter_section=None, indent=0):
if __name__ == "__main__":
- parser = argparse.ArgumentParser(description="XKB symbol tree viewer")
+ parser = argparse.ArgumentParser(
+ description="""
+ XKB symbol tree viewer.
+
+ This tool takes a symbols file and optionally a section in that
+ file and recursively walks the include directives in that section.
+ The resulting tree may be useful for checking which files
+ are affected when a single section is modified.
+ """
+ )
parser.add_argument(
"file",
metavar="file-or-directory",