Skip to content

Commit a4bcdf6

Browse files
authored
Merge pull request #25 from quarkslab/refactor-binexport-launching
Change the way to call binexporter.
2 parents 4e047af + 1b7cbd9 commit a4bcdf6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/binexport/__main__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,16 @@ def check_disassembler_availability(disass: DisassemblerBackend, disass_path: st
125125
@click.option(
126126
"-d",
127127
"--disassembler",
128-
type=click.Choice(["ida", "ghidra", "binja"], case_sensitive=False),
128+
type=click.Choice([x.name.lower() for x in DisassemblerBackend], case_sensitive=False),
129129
default="ida",
130130
help="Disassembler to use",
131131
)
132132
@click.option(
133133
"--disass-path",
134134
type=click.Path(exists=True),
135-
default=None,
136-
help="Ghidra installation directory",
135+
default="",
136+
help="Path of the disassembler (if not in PATH)" \
137+
"Can be provided with IDA_PATH, GHIDRA_PATH env variables",
137138
)
138139
@click.option("-t", "--threads", type=int, default=1, help="Thread number to use")
139140
@click.option("-v", "--verbose", count=True, help="To activate or not the verbosity")

0 commit comments

Comments
 (0)