mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
dispatch: remove 2 calls to fancyopts
Summary: clidispatch replaces them. Reviewed By: sfilipco Differential Revision: D16733263 fbshipit-source-id: 32e6cef0ec289a47969b75c332a3117591862ce0
This commit is contained in:
parent
d2e169b097
commit
37bf3cd1eb
@ -525,7 +525,6 @@ def _runcatch(req):
|
||||
def _runcatchfunc():
|
||||
realcmd = None
|
||||
try:
|
||||
cmdargs = fancyopts.fancyopts(req.args[:], commands.globalopts, {})
|
||||
cmdargs = cliparser.parseargs(req.args[:])
|
||||
cmd = cmdargs[0]
|
||||
aliases, entry = cmdutil.findcmd(cmd, commands.table, False)
|
||||
@ -1146,15 +1145,6 @@ def _parseconfig(ui, config):
|
||||
|
||||
|
||||
def _earlyparseopts(ui, args):
|
||||
options = {}
|
||||
fancyopts.fancyopts(
|
||||
args,
|
||||
commands.globalopts,
|
||||
options,
|
||||
gnu=True,
|
||||
early=True,
|
||||
optaliases={"repository": ["repo"]},
|
||||
)
|
||||
try:
|
||||
return cliparser.earlyparse(args)
|
||||
except UnicodeDecodeError:
|
||||
|
Loading…
Reference in New Issue
Block a user