Skip to content

Commit a3f66fd

Browse files
authored
Merge pull request #16 from UncleGrumpy/fix_create_bug
Fix bug in `packbeam create`
2 parents d4346b9 + 65e9053 commit a3f66fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packbeam.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ do_create(Opts, Args) ->
184184
OutputFile, InputFiles,
185185
#{
186186
prune => maps:get(prune, Opts, false),
187-
start => maps:get(start, Opts, undefined),
187+
start_module => maps:get(start_module, Opts, undefined),
188188
include_lines => not maps:get(remove_lines, Opts, false)
189189
}
190190
),

src/packbeam_api.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ create(OutputPath, InputPaths, Options) ->
120120
start_module := StartModule,
121121
application_module := ApplicationModule,
122122
include_lines := IncludeLines
123-
} = Options,
123+
} = maps:merge(?DEFAULT_OPTIONS, Options),
124124
ParsedFiles = parse_files(InputPaths, StartModule, IncludeLines),
125125
write_packbeam(
126126
OutputPath,

0 commit comments

Comments
 (0)