[bitbake-devel,1/2] bitbake-selftest: fix help message to include command line

Submitted by Paul Eggleton on April 8, 2014, 3:49 p.m.

Details

Message ID 1e0e4415cf6cfb462a8cfca340646abed39cd077.1396972155.git.paul.eggleton@linux.intel.com
State Accepted, archived
Headers show

Commit Message

Paul Eggleton April 8, 2014, 3:49 p.m.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bin/bitbake-selftest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest
index 8c55f7b..81e4c3c 100755
--- a/bin/bitbake-selftest
+++ b/bin/bitbake-selftest
@@ -26,7 +26,7 @@  except RuntimeError as exc:
     sys.exit(str(exc))
 
 def usage():
-    print('usage: %s [testname1 [testname2]...]')
+    print('usage: %s [testname1 [testname2]...]' % os.path.basename(sys.argv[0]))
 
 if len(sys.argv) > 1:
     if '--help' in sys.argv[1:]: