Skip to content

Commit

Permalink
Deprecate start_arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Dec 24, 2023
1 parent 0ad27f2 commit b5075da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- Updated for `gleam_stdlib` v0.33.0.
- The `gleam/erlang/file` module has been removed.
- The `start_arguments` function has been deprecated in favour of the `argv`
package.

## v0.23.1 - 2023-11-15

Expand Down
1 change: 1 addition & 0 deletions src/gleam/erlang.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ fn get_start_arguments() -> List(Charlist)
/// Get the arguments given to the program when it was started.
///
/// This is sometimes called `argv` in other languages.
@deprecated("Please use the argv package instead")
pub fn start_arguments() -> List(String) {
get_start_arguments()
|> list.map(charlist.to_string)
Expand Down

0 comments on commit b5075da

Please sign in to comment.