import functools

def command(triggers):
    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        inner.commands = triggers
        return inner

    return wrap

def help(line):
    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        # Create help list or prepend to it
        if not hasattr(inner, 'help'):
            inner.help = [line]
        else:
            inner.help.insert(0, line)

        return inner

    return wrap

import functools

def command(triggers):
    if isinstance(triggers, basestring):
        triggers = [triggers]

    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        inner.commands = triggers
        return inner

    return wrap

def help(line):
    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        # Create help list or prepend to it
        if not hasattr(inner, 'help'):
            inner.help = [line]
        else:
            inner.help.insert(0, line)

        return inner

    return wrap

Allow for single trigger in @command decorator
Allow for single trigger in @command decorator

  import functools
  
  def command(triggers):
+     if isinstance(triggers, basestring):
+         triggers = [triggers]
+ 
      def wrap(f):
          @functools.wraps(f)
          def inner(*args, **kwargs):
              return f(*args, **kwargs)
  
          inner.commands = triggers
          return inner
  
      return wrap
  
  def help(line):
      def wrap(f):
          @functools.wraps(f)
          def inner(*args, **kwargs):
              return f(*args, **kwargs)
  
          # Create help list or prepend to it
          if not hasattr(inner, 'help'):
              inner.help = [line]
          else:
              inner.help.insert(0, line)
  
          return inner
  
      return wrap
  
Allow for single trigger in @command decorator
## Code Before:
import functools

def command(triggers):
    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        inner.commands = triggers
        return inner

    return wrap

def help(line):
    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        # Create help list or prepend to it
        if not hasattr(inner, 'help'):
            inner.help = [line]
        else:
            inner.help.insert(0, line)

        return inner

    return wrap

## Instruction:
Allow for single trigger in @command decorator
## Code After:
import functools

def command(triggers):
    if isinstance(triggers, basestring):
        triggers = [triggers]

    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        inner.commands = triggers
        return inner

    return wrap

def help(line):
    def wrap(f):
        @functools.wraps(f)
        def inner(*args, **kwargs):
            return f(*args, **kwargs)

        # Create help list or prepend to it
        if not hasattr(inner, 'help'):
            inner.help = [line]
        else:
            inner.help.insert(0, line)

        return inner

    return wrap
