Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
fix list range scope
  • Loading branch information
LandGrey committed Jul 25, 2017
1 parent c14abd0 commit 48d28d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/parse/argsparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ def tool_parser():
exit(pyoptions.CRLF + cool.red("[-] Need other extra arguments"))
else:
exit(pyoptions.CRLF + cool.red("[-] No tool named %s" % pyoptions.args_tool[0]) +
pyoptions.CRLF + "[!] Choose tool from ({0}, {1}, {2}, {3}, {4})".format(
pyoptions.CRLF + "[!] Choose tool from ({0}, {1}, {2}, {3}, {4}, {5})".format(
cool.fuchsia(pystrs.tool_range[0]),
cool.fuchsia(pystrs.tool_range[1]),
cool.fuchsia(pystrs.tool_range[2]),
cool.fuchsia(pystrs.tool_range[3]),
cool.fuchsia(pystrs.tool_range[4])))
cool.fuchsia(pystrs.tool_range[4]),
cool.fuchsia(pystrs.tool_range[5]),
))
else:
exit(pyoptions.CRLF + cool.red("[-] Please specified tool name"))
2 changes: 1 addition & 1 deletion lib/parse/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def parse_args():
choices=[pystrs.encode_range[0], pystrs.encode_range[1], pystrs.encode_range[2],
pystrs.encode_range[3], pystrs.encode_range[4], pystrs.encode_range[5],
pystrs.encode_range[6], pystrs.encode_range[7], pystrs.encode_range[8]],
help=cool.yellow('''From ({e0}, {e1}, {e2}, {e3}, {e4}, {e5}, {e6}, {e7})'''
help=cool.yellow('''From ({e0}, {e1}, {e2}, {e3}, {e4}, {e5}, {e6}, {e7}, {e8})'''
.format(e0=pystrs.encode_range[0], e1=pystrs.encode_range[1],
e2=pystrs.encode_range[2], e3=pystrs.encode_range[3],
e4=pystrs.encode_range[4], e5=pystrs.encode_range[5],
Expand Down

0 comments on commit 48d28d5

Please sign in to comment.