Print only basename of the script when unknown action given

This commit is contained in:
Marcin Kulik
2012-11-03 21:41:39 +01:00
committed by Marcin Kulik
parent 45c7390718
commit 2c4217fc10

View File

@@ -31,7 +31,7 @@ class CLI:
self.version()
else:
print('Unknown action: %s' % action)
print('Run "%s --help" for list of available options' % sys.argv[0])
print('Run "%s --help" for list of available options' % SCRIPT_NAME)
def record(self):
if not AsciiCast(self.config, self.options).create():