Skip to content

Commit

Permalink
Fixed golismero#44
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioVilas committed Apr 8, 2018
1 parent 1246bcc commit 1c41e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golismero.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __call__(self, parser, namespace, values, option_string=None):
line = line.strip()
if not line or line[0] == "#":
continue
tokens.append(tokens)
tokens.append(line)
except Exception:
parser.error("Error reading file: %s" % values)
setattr(namespace, self.dest, tokens)
Expand Down Expand Up @@ -268,7 +268,7 @@ def plugins_completer(prefix, **kwargs):
parser.add_argument("--help", action='help', default=argparse.SUPPRESS, help="show this help message and exit")

gr_main = parser.add_argument_group("main options")
cmd = gr_main.add_argument("-f", "--file", metavar="FILE", action=LoadListFromFileAction, help="load a list of targets from a plain text file")
cmd = gr_main.add_argument("-f", "--file", metavar="FILE", dest="targets", action=LoadListFromFileAction, help="load a list of targets from a plain text file")
if autocomplete_enabled:
cmd.completer = FilesCompleter(directories=False)
cmd = gr_main.add_argument("--config", metavar="FILE", help="global configuration file")
Expand Down

0 comments on commit 1c41e9b

Please sign in to comment.