Skip to content

Commit

Permalink
Merge cff4710 into 6df989e
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldemarmiesse committed Jul 31, 2019
2 parents 6df989e + cff4710 commit f30d6de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sacred/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@
from collections import OrderedDict
import textwrap
import inspect
from shlex import quote

from sacred.serializer import restore
from sacred.settings import SETTINGS
from sacred.utils import set_by_dotted_path

try:
from shlex import quote as cmd_quote
except ImportError:
from pipes import quote as cmd_quote

__all__ = ('get_config_updates', 'format_usage')

Expand Down Expand Up @@ -190,7 +187,7 @@ def format_usage(program_name, description, commands=None, options=()):
"""
usage = USAGE_TEMPLATE.format(
program_name=cmd_quote(program_name),
program_name=quote(program_name),
description=description.strip() if description else '',
options=_format_options_usage(options),
arguments=_format_arguments_usage(options),
Expand Down

0 comments on commit f30d6de

Please sign in to comment.