]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed prog name
authorkaliko <efrim@azylum.org>
Sat, 2 Nov 2013 18:40:06 +0000 (19:40 +0100)
committerkaliko <efrim@azylum.org>
Sat, 2 Nov 2013 18:40:06 +0000 (19:40 +0100)
launch
sima/utils/startopt.py

diff --git a/launch b/launch
index 13528b7559e769e1fa4929b6f1c7e7a339dcf082..618e1bcb980ab99dbc14edaff21019ef7613f23e 100755 (executable)
--- 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
index da8bbda6e1763accdff197c652acc944aad85692..fa69d8cd357e737e011ca8c7da85c9fc921dd777 100644 (file)
@@ -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',