From: kaliko Date: Sat, 2 Nov 2013 18:40:06 +0000 (+0100) Subject: Fixed prog name X-Git-Tag: mpd-sima/0.12.0pr2~29 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=8495a82088dba0b58662338b8ddef870894c9e34;p=mpd-sima.git Fixed prog name --- 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',