|
|
|
@ -92,7 +92,7 @@ class sync_cmd(share_cmd):
|
|
|
|
|
"""Проверка опций командной строки"""
|
|
|
|
|
optionsRequired = self.getOptionsRequired(optObj)
|
|
|
|
|
if not args:
|
|
|
|
|
options = [optObj.color, optObj.v, optObj.varsfilter]
|
|
|
|
|
options = [optObj.color, optObj.v, optObj.filter, optObj.xml]
|
|
|
|
|
if not filter(lambda x: x, options):
|
|
|
|
|
errMsg = _("no such argument")+":"+" %s" %USAGE.split(" ")[-1]
|
|
|
|
|
self.optobj.error(errMsg)
|
|
|
|
@ -113,6 +113,17 @@ class sync_cmd(share_cmd):
|
|
|
|
|
errMsg = _("incorrect argument") + ":" + " %s" %" ".join(args)
|
|
|
|
|
self.optobj.error(errMsg)
|
|
|
|
|
return False
|
|
|
|
|
if not optObj.v:
|
|
|
|
|
if optObj.filter:
|
|
|
|
|
errMsg = _("incorrect option") + ":" + " %s" %"--filter" +\
|
|
|
|
|
": " + _("use with option '-v'")
|
|
|
|
|
self.optobj.error(errMsg)
|
|
|
|
|
return False
|
|
|
|
|
if optObj.xml:
|
|
|
|
|
errMsg = _("incorrect option") + ":" + " %s" %"--xml" +\
|
|
|
|
|
": " + _("use with option '-v'")
|
|
|
|
|
self.optobj.error(errMsg)
|
|
|
|
|
return False
|
|
|
|
|
return optObj, args
|
|
|
|
|
|
|
|
|
|
def setUserName(self, userName):
|
|
|
|
|