From 8495a82088dba0b58662338b8ddef870894c9e34 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 2 Nov 2013 19:40:06 +0100 Subject: [PATCH] Fixed prog name --- launch | 3 ++- sima/utils/startopt.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/launch b/launch index 13528b7..618e1bc 100755 --- a/launch +++ b/launch @@ -66,7 +66,8 @@ def load_internal_plugins(sima): def main(): """Entry point, deal w/ CLI and starts application """ - info = dict({'version': core.__version__,}) + info = dict({'version': core.__version__, + 'prog': 'sima'}) # StartOpt gathers options from command line call (in StartOpt().options) sopt = StartOpt(info) # set logger diff --git a/sima/utils/startopt.py b/sima/utils/startopt.py index da8bbda..fa69d8c 100644 --- a/sima/utils/startopt.py +++ b/sima/utils/startopt.py @@ -125,7 +125,7 @@ class StartOpt(object): """ self.parser = ArgumentParser(description=DESCRIPTION, usage='%(prog)s [options]', - prog='mpd_sima', + prog=self.info.get('prog') epilog='Happy Listening', ) self.parser.add_argument('--version', action='version', -- 2.39.5