when user specified 'group' parameter, it should be parsed as an 'int'

Otherwise, when we do slicing, it would report type error.
This commit is contained in:
Lu Guanqun 2012-11-27 15:11:43 +08:00
parent 8dffd457db
commit f64774ec6c
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ if __name__ == "__main__":
if opt in ("-d","--directory"):
directory = arg
if opt in ("-g","--group"):
group = arg
group = int(arg)
if opt in ("-i","--identifier"):
identifier = arg
if opt in ("-p","--prefix"):