Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: Removing shorthand -c and -d command line args from pyghidra_launcher.py...they interfered with some AnalyzeHeadless args

Ryan Kurtz50a0bcd0505c
diff --git a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py
index 7ed7bef0fd..17b54d9794 100644
--- a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py
+++ b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py
@@ -212,8 +212,8 @@ def main() -> None:
# Parse command line arguments
parser = argparse.ArgumentParser(prog=Path(__file__).name)
parser.add_argument('install_dir', metavar='<install dir>', help='Ghidra installation directory')
- parser.add_argument('-c', '--console', action='store_true', help='Force console launch')
- parser.add_argument('-d', '--dev', action='store_true', help='Ghidra development mode')
+ parser.add_argument('--console', action='store_true', help='Force console launch')
+ parser.add_argument('--dev', action='store_true', help='Ghidra development mode')
parser.add_argument('-H', '--headless', action='store_true', help='Ghidra headless mode')
args, remaining = parser.parse_known_args()