def cmd_help(args, opts):
 print 'Available commands:'
 for (_, func) in sorted(get_commands().items()):
  print '  ', func.__doc__

def cmd_help ( args , opts ) : print 'Available commands:' for ( _ , func ) in sorted ( get_commands ( ) . items ( ) ) : print '  ' , func . __doc__
help - list available commands .