help command not found
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Mon, 4 Aug 2014 10:30:11 +0000 (19:30 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Mon, 4 Aug 2014 10:30:11 +0000 (19:30 +0900)
docs/conf.py
rainbowstream/rainbow.py
setup.py

index 66ef9be9d08a78175db3b03ded041676dc86dfd1..932239f83ac40cd1cc0a28e3ea7029069dfc811e 100644 (file)
@@ -48,9 +48,9 @@ copyright = u'2014, Vu Nhat Minh'
 # built documents.
 #
 # The short X.Y version.
-version = '0.6.1'
+version = '0.6.2'
 # The full version, including alpha/beta/rc tags.
-release = '0.6.1'
+release = '0.6.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index 14149d9e1ec3c8c586f74f9e5e618dbdcbd304ae..2e8b1ca877fdf809508927f5104c651143ab6ec8 100644 (file)
@@ -198,7 +198,11 @@ def switch():
             g['stream_stop'] = True
             args.track_keywords = keyword
             # Start new thread
-            th = threading.Thread(target=stream, args=(c['PUBLIC_DOMAIN'], args))
+            th = threading.Thread(
+                target=stream,
+                args=(
+                    c['PUBLIC_DOMAIN'],
+                    args))
             th.daemon = True
             th.start()
         # Personal stream
@@ -206,7 +210,12 @@ def switch():
             # Kill old thread
             g['stream_stop'] = True
             # Start new thread
-            th = threading.Thread(target=stream, args=(c['USER_DOMAIN'], args, g['original_name']))
+            th = threading.Thread(
+                target=stream,
+                args=(
+                    c['USER_DOMAIN'],
+                    args,
+                    g['original_name']))
             th.daemon = True
             th.start()
         printNicely('')
@@ -1136,7 +1145,7 @@ def config():
             set_config(key, value)
             # Apply theme immediately
             if key == 'THEME':
-                c['THEME'] = reload_theme(value,c['THEME'])
+                c['THEME'] = reload_theme(value, c['THEME'])
                 g['decorated_name'] = lambda x: color_func(
                     c['DECORATED_NAME'])(
                     '[' + x + ']: ')
@@ -1166,7 +1175,7 @@ def theme():
         # Change theme
         try:
             # Load new theme
-            c['THEME'] = reload_theme(g['stuff'],c['THEME'])
+            c['THEME'] = reload_theme(g['stuff'], c['THEME'])
             # Redefine decorated_name
             g['decorated_name'] = lambda x: color_func(
                 c['DECORATED_NAME'])(
@@ -1431,7 +1440,10 @@ def help():
         'stream': help_stream,
     }
     if g['stuff']:
-        d[g['stuff'].strip()]()
+        d.get(
+            g['stuff'].strip(),
+            lambda: printNicely(red('No such command.'))
+            )()
     else:
         printNicely(usage)
 
@@ -1716,7 +1728,12 @@ def fly():
         save_history()
         sys.exit()
     # Spawn stream thread
-    th = threading.Thread(target=stream, args=(c['USER_DOMAIN'], args, g['original_name']))
+    th = threading.Thread(
+        target=stream,
+        args=(
+            c['USER_DOMAIN'],
+            args,
+            g['original_name']))
     th.daemon = True
     th.start()
     # Start listen process
index d225ebd921e088068f24a492731188b33ba56f53..b9cf53935ae984ba1d81977692dfb0b5f82cc64e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import os
 import os.path
 
 # Bumped version
-version = '0.6.1'
+version = '0.6.2'
 
 # Require
 install_requires = [