* prefs2prefs.py : Error when both -l and -p are given, update usage.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39667 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Julien Rioux 2011-09-12 20:42:53 +00:00
parent 603be7fe2f
commit ba02c43178

View File

@ -120,7 +120,7 @@ def usage():
print "or: %s [-l] [-p] <infile >outfile" % sys.argv[0]
print " -l: convert LFUNs (bind and ui files)"
print " -p: convert preferences"
print "Note that one of -l and -p is required."
print "Note that exactly one of -l and -p is required."
def main(argv):
@ -155,7 +155,11 @@ def main(argv):
if not conversions:
usage()
print "\nNeither -l nor -p given"
print "\nNeither -l nor -p given."
sys.exit(1)
elif len(options) > 1:
usage()
print "\nOnly one of -l or -p should be given."
sys.exit(1)
current_format = len(conversions)