From 9ccf6053ded9af2b8fda2c87c27519ade210bf63 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 12 Sep 2024 21:40:55 +0000 Subject: [PATCH] app: tell the user to use `-vv` when debugging "manifest --validate" It seems natural to recommend "debug" flags when telling the user to "debug". More specifically, this makes a big difference in situations like the one reported in #671 Signed-off-by: Marc Herbert --- src/west/app/main.py | 2 +- src/west/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/west/app/main.py b/src/west/app/main.py index adfa3f99..5c4cda84 100755 --- a/src/west/app/main.py +++ b/src/west/app/main.py @@ -982,7 +982,7 @@ def append(*strings): # warn them again. append('Cannot load extension commands; ' 'help for them is not available.') - append('(To debug, try: "west manifest --validate".)') + append('(To debug, try: "west -vv manifest --validate".)') append('') else: # TODO we may want to be more aggressive about loading diff --git a/src/west/commands.py b/src/west/commands.py index 2e5a4b89..1abb0fcd 100644 --- a/src/west/commands.py +++ b/src/west/commands.py @@ -260,7 +260,7 @@ def _get_manifest(self) -> Manifest: if self._manifest is None: self.die(f"can't run west {self.name};", "it requires the manifest, which was not available.", - 'Try "west manifest --validate" to debug.') + 'Try "west -vv manifest --validate" to debug.') return self._manifest def _set_manifest(self, manifest: Optional[Manifest]):