old_contents: import argparse
  from .version import VERSION
  
  def _init_parser():
      parser = argparse.ArgumentParser(prog='dotcloud', description='dotcloud CLI')
      parser.add_argument('--application', '-A', help='specify the application')
      parser.add_argument('--environment', '-E', help='specify the environment')
      parser.add_argument('--version', '-v', action='version', version='dotcloud/{0}'.format(VERSION))
      parser.add_argument('--trace', action='store_true', help='Display trace ID')
      
      subcmd = parser.add_subparsers(dest='cmd')
  
      subcmd.add_parser('list', help='list applications')
      subcmd.add_parser('version', help='show version')
  
      check = subcmd.add_parser('check', help='Check the installation and authentication')
      setup = subcmd.add_parser('setup', help='Setup the client authentication')
  
      create = subcmd.add_parser('create', help='Create a new application')
      create.add_argument('application', help='specify the application')
  
      conn = subcmd.add_parser('connect', help='Connect a local directory with an existing app')
      conn.add_argument('application', help='specify the application')
  
      destroy = subcmd.add_parser('destroy', help='Destroy an existing app')
      disconnect = subcmd.add_parser('disconnect', help='Disconnect the current directory from DotCloud app')
  
      app = subcmd.add_parser('app', help='Show the application name linked')
  
      info = subcmd.add_parser('info', help='Get information about the application')
      info.add_argument('service', nargs='?', help='Specify the service')
  
      url = subcmd.add_parser('url', help='Show URL for the application')
      url.add_argument('service', nargs='?', help='Specify the service')
  
      ssh = subcmd.add_parser('ssh', help='SSH into the service')
      ssh.add_argument('service', help='Specify the service')
  
      run = subcmd.add_parser('run', help='SSH into the service')
      run.add_argument('service', help='Specify the service')
      run.add_argument('command', nargs='+', help='Run a command on the service')
  
      env = subcmd.add_parser('env', help='Manipulate application environments')
      env.add_argument('commands', nargs='*')
  
      push = subcmd.add_parser('push', help='Push the code')
  
      var = subcmd.add_parser('var', help='Manipulate application variables')
      var.add_argument('commands', nargs='*')
  
      scale = subcmd.add_parser('scale', help='Scale services')
      scale.add_argument('services', nargs='*')
  
      restart = subcmd.add_parser('restart', help='Restart the service')
      restart.add_argument('service', help='Specify the service')
  
      return parser
  
  _p = _init_parser()
  
  def get_parser():
      return _p
      
  
  
  
new_contents: import argparse
  from .version import VERSION
  
  def _init_parser():
      parser = argparse.ArgumentParser(prog='dotcloud', description='dotcloud CLI')
      parser.add_argument('--application', '-A', help='specify the application')
      parser.add_argument('--environment', '-E', help='specify the environment')
      parser.add_argument('--version', '-v', action='version', version='dotcloud/{0}'.format(VERSION))
      parser.add_argument('--trace', action='store_true', help='Display trace ID')
      
      subcmd = parser.add_subparsers(dest='cmd')
  
      subcmd.add_parser('list', help='list applications')
      subcmd.add_parser('version', help='show version')
  
      check = subcmd.add_parser('check', help='Check the installation and authentication')
      setup = subcmd.add_parser('setup', help='Setup the client authentication')
  
      create = subcmd.add_parser('create', help='Create a new application')
      create.add_argument('application', help='specify the application')
  
      conn = subcmd.add_parser('connect', help='Connect a local directory with an existing app')
      conn.add_argument('application', help='specify the application')
  
      destroy = subcmd.add_parser('destroy', help='Destroy an existing app')
      disconnect = subcmd.add_parser('disconnect', help='Disconnect the current directory from DotCloud app')
  
      app = subcmd.add_parser('app', help='Show the application name linked to the current directory')
  
      info = subcmd.add_parser('info', help='Get information about the application')
      info.add_argument('service', nargs='?', help='Specify the service')
  
      url = subcmd.add_parser('url', help='Show URL for the application')
      url.add_argument('service', nargs='?', help='Specify the service')
  
      ssh = subcmd.add_parser('ssh', help='SSH into the service')
      ssh.add_argument('service', help='Specify the service')
  
      run = subcmd.add_parser('run', help='SSH into the service')
      run.add_argument('service', help='Specify the service')
      run.add_argument('command', nargs='+', help='Run a command on the service')
  
      env = subcmd.add_parser('env', help='Manipulate application environments')
      env.add_argument('commands', nargs='*')
  
      push = subcmd.add_parser('push', help='Push the code')
  
      var = subcmd.add_parser('var', help='Manipulate application variables')
      var.add_argument('commands', nargs='*')
  
      scale = subcmd.add_parser('scale', help='Scale services')
      scale.add_argument('services', nargs='*')
  
      restart = subcmd.add_parser('restart', help='Restart the service')
      restart.add_argument('service', help='Specify the service')
  
      return parser
  
  _p = _init_parser()
  
  def get_parser():
      return _p
      
  
  
  
subject: fix docstrings for the app command