Commit e72ac4d8 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fixed error messages when parsing of arguments fails

parent a4b61480
......@@ -49,12 +49,13 @@ try:
'svcclass=', 'auto-delete', 'file-mask=',
'comment=', 'query', 'config', 'failures',
'running', 'script', 'delete', 'verbose'])
# Any positional arguments left over after parsing?
if len(arguments):
usage(1)
except Exception, parsingException:
print parsingException
usage(1)
# Any positional arguments left over after parsing?
if len(arguments):
print 'Unexpected arguments found : %s' % ' '.join(arguments)
usage(1)
class FileMask(object):
'''Constants defining the existing types of transfer'''
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment