[Infer][java] Fixing bug where passing -deprecation flag to javac broke compilation

Summary:
The python parser for '-d <dir>' interpreted '-deprecation'
as '-d eprecation', which is not desirable. Fixed it by teaching the parser to
parse '-deprecation' as a boolean flag.
master
Sam Blackshear 9 years ago
parent 0f8c3e7974
commit 62b57827c8

@ -20,6 +20,7 @@ parser = argparse.ArgumentParser()
current_directory = os.getcwd() current_directory = os.getcwd()
parser.add_argument('-version', action='store_true') parser.add_argument('-version', action='store_true')
parser.add_argument('-deprecation', action='store_true')
parser.add_argument('-cp', '-classpath', type=str, dest='classpath') parser.add_argument('-cp', '-classpath', type=str, dest='classpath')
parser.add_argument('-bootclasspath', type=str) parser.add_argument('-bootclasspath', type=str)
parser.add_argument('-d', dest='classes_out', default=current_directory) parser.add_argument('-d', dest='classes_out', default=current_directory)

Loading…
Cancel
Save