diff --git a/.gitignore b/.gitignore index 958dabe..7d1bc90 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /.venv /android_java/temp.py +__pycache__ +*.egg-info diff --git a/android_java/__init__.py b/android_java/__init__.py index fecbb66..6b40d6a 100644 --- a/android_java/__init__.py +++ b/android_java/__init__.py @@ -20,16 +20,19 @@ def main(): subparsers: argparse._SubParsersAction = parser.add_subparsers(dest="mode") compile_parser = subparsers.add_parser("compile", help="Compile source file") compile_parser.add_argument( - "SourceFile.java", + metavar="SourceFile.java", dest="source_file", help="The source file to compile/create dex for", ) run_parser = subparsers.add_parser( "run", - help="Run main method of class. Ensure you are in the same directory as the source file", + help="Run main method of class. Ensure you are in the same directory\ + as the source file", + ) + run_parser.add_argument( + metavar="MainClass", help="The class to run.", dest="main_class" ) - run_parser.add_argument("MainClass", help="The class to run.", dest="main_class") args = parser.parse_args() if args.mode == "compile":