Skip to content

Commit

Permalink
Merge pull request #16 from UncleGrumpy/fix_create_bug
Browse files Browse the repository at this point in the history
Fix bug in `packbeam create`
  • Loading branch information
UncleGrumpy committed Jun 3, 2024
2 parents d4346b9 + 65e9053 commit a3f66fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packbeam.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
),
Expand Down
2 changes: 1 addition & 1 deletion src/packbeam_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a3f66fd

Please sign in to comment.