diff --git a/src/packbeam.erl b/src/packbeam.erl index 62102bd..425b980 100644 --- a/src/packbeam.erl +++ b/src/packbeam.erl @@ -184,7 +184,7 @@ do_create(Opts, Args) -> OutputFile, InputFiles, #{ prune => maps:get(prune, Opts, false), - start => maps:get(start, Opts, undefined), + start_module => maps:get(start_module, Opts, undefined), include_lines => not maps:get(remove_lines, Opts, false) } ), diff --git a/src/packbeam_api.erl b/src/packbeam_api.erl index 3303dee..1f93d2b 100644 --- a/src/packbeam_api.erl +++ b/src/packbeam_api.erl @@ -120,7 +120,7 @@ create(OutputPath, InputPaths, Options) -> start_module := StartModule, application_module := ApplicationModule, include_lines := IncludeLines - } = Options, + } = maps:merge(?DEFAULT_OPTIONS, Options), ParsedFiles = parse_files(InputPaths, StartModule, IncludeLines), write_packbeam( OutputPath,