Skip to content

Commit

Permalink
Make 'ccscript-offset' a flag instead of argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowOne333 committed Apr 19, 2024
1 parent 79bcdea commit 824dcc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions coilsnake/ui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
compile_parser.add_argument("project_directory")
compile_parser.add_argument("base_rom")
compile_parser.add_argument("output_rom")
compile_parser.add_argument("ccscript_offset", nargs='?')
compile_parser.add_argument('--ccscript-offset')
compile_parser.set_defaults(func=_compile)

decompile_parser = subparsers.add_parser("decompile", help="decompile from rom to project")
Expand Down Expand Up @@ -86,8 +86,6 @@ def main():


def _compile(args):
if args.ccscript_offset == None:
args.ccscript_offset = 'F10000'
compile_project(project_path=args.project_directory,
base_rom_filename=args.base_rom,
output_rom_filename=args.output_rom,
Expand Down

0 comments on commit 824dcc8

Please sign in to comment.