
"""Tools that use the library to analyze and decompile files."""

from retdec import DEFAULT_API_URL
from retdec import __version__


def _add_arguments_shared_by_all_tools(parser):
    """Adds arguments that are used by all tools to the given parser."""
    parser.add_argument(
        '-k', '--api-key',
        dest='api_key',
        metavar='KEY',
        help='API key to be used.'
    )
    parser.add_argument(
        '-u', '--api-url',
        dest='api_url',
        metavar='URL',
        default=DEFAULT_API_URL,
        help='URL to the API. Default: {}.'.format(DEFAULT_API_URL)
    )
    parser.add_argument(
        '-V', '--version',
        action='version',
        version='%(prog)s (via retdec-python) {}'.format(__version__)
    )


"""Tools that use the library to analyze and decompile files."""

from retdec import DEFAULT_API_URL
from retdec import __version__


def _add_arguments_shared_by_all_tools(parser):
    """Adds arguments that are used by all tools to the given parser."""
    parser.add_argument(
        '-k', '--api-key',
        dest='api_key',
        metavar='KEY',
        help='API key to be used.'
    )
    parser.add_argument(
        '-u', '--api-url',
        dest='api_url',
        metavar='URL',
        default=DEFAULT_API_URL,
        help='URL to the API. Default: %(default)s.'
    )
    parser.add_argument(
        '-V', '--version',
        action='version',
        version='%(prog)s (via retdec-python) {}'.format(__version__)
    )

Simplify the help message for the -k/--api-key parameter.
Simplify the help message for the -k/--api-key parameter.

We can use the '%(default)s' placeholder instead of string formatting.

  
  """Tools that use the library to analyze and decompile files."""
  
  from retdec import DEFAULT_API_URL
  from retdec import __version__
  
  
  def _add_arguments_shared_by_all_tools(parser):
      """Adds arguments that are used by all tools to the given parser."""
      parser.add_argument(
          '-k', '--api-key',
          dest='api_key',
          metavar='KEY',
          help='API key to be used.'
      )
      parser.add_argument(
          '-u', '--api-url',
          dest='api_url',
          metavar='URL',
          default=DEFAULT_API_URL,
-         help='URL to the API. Default: {}.'.format(DEFAULT_API_URL)
+         help='URL to the API. Default: %(default)s.'
      )
      parser.add_argument(
          '-V', '--version',
          action='version',
          version='%(prog)s (via retdec-python) {}'.format(__version__)
      )
  
Simplify the help message for the -k/--api-key parameter.
## Code Before:

"""Tools that use the library to analyze and decompile files."""

from retdec import DEFAULT_API_URL
from retdec import __version__


def _add_arguments_shared_by_all_tools(parser):
    """Adds arguments that are used by all tools to the given parser."""
    parser.add_argument(
        '-k', '--api-key',
        dest='api_key',
        metavar='KEY',
        help='API key to be used.'
    )
    parser.add_argument(
        '-u', '--api-url',
        dest='api_url',
        metavar='URL',
        default=DEFAULT_API_URL,
        help='URL to the API. Default: {}.'.format(DEFAULT_API_URL)
    )
    parser.add_argument(
        '-V', '--version',
        action='version',
        version='%(prog)s (via retdec-python) {}'.format(__version__)
    )

## Instruction:
Simplify the help message for the -k/--api-key parameter.
## Code After:

"""Tools that use the library to analyze and decompile files."""

from retdec import DEFAULT_API_URL
from retdec import __version__


def _add_arguments_shared_by_all_tools(parser):
    """Adds arguments that are used by all tools to the given parser."""
    parser.add_argument(
        '-k', '--api-key',
        dest='api_key',
        metavar='KEY',
        help='API key to be used.'
    )
    parser.add_argument(
        '-u', '--api-url',
        dest='api_url',
        metavar='URL',
        default=DEFAULT_API_URL,
        help='URL to the API. Default: %(default)s.'
    )
    parser.add_argument(
        '-V', '--version',
        action='version',
        version='%(prog)s (via retdec-python) {}'.format(__version__)
    )
