Commits

Kirill Simonov committed e03b874

Fixed some minor issues; bumped the version number.

  • Participants
  • Parent commits 4ea6b5a

Comments (0)

Files changed (3)

 
 
 NAME = "Cogs"
-VERSION = "0.2.2"
+VERSION = "0.2.3"
 DESCRIPTION = """Toolkit for developing command-line utilities in Python"""
 LONG_DESCRIPTION = open('README', 'r').read()
 AUTHOR = """Kirill Simonov (Prometheus Research, LLC)"""
       version=VERSION,
       description=DESCRIPTION,
       author=AUTHOR,
+      author_email=AUTHOR_EMAIL,
       license=LICENSE,
       url=URL,
       download_url=DOWNLOAD_URL,
 def exe(cmd, cd=None, environ=None):
     """Execute the command replacing the current process."""
     debug("{}", cmd)
-    line = cmd.split()
+    if isinstance(cmd, str):
+        cmd = cmd.split()
     if environ:
         overrides = environ
         environ = os.environ.copy()
         os.chdir(cd)
     try:
         if environ:
-            os.execvpe(line[0], line, environ)
+            os.execvpe(cmd[0], cmd, environ)
         else:
-            os.execvp(line[0], line)
+            os.execvp(cmd[0], cmd)
     except OSError, exc:
         raise fail(str(exc))
 
                 if opt.has_value:
                     usage = "%s=%s" % (usage, opt.value_name)
                 if spec.hint:
-                    log("  {:<24} : {}", usage, spec.hint)
+                    log("  {:<24} : {}", usage, opt.hint)
                 else:
-                    log("  {}", spec.name)
+                    log("  {}", opt.name)
             log()
 
     def describe_setting(self, spec):