Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Commit a958f3f

Browse files
authored
Merge pull request #57 from marcelovicentegc/fix/deprecated-parse
fix: get rid of deprecated OptionParser.parse!
2 parents a7b7999 + 83814ef commit a958f3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

2-
FROM crystallang/crystal:0.27.0
2+
FROM crystallang/crystal:0.31.1
33
ADD . /tmp/
44
WORKDIR /tmp
55
RUN crystal tool format --check
66
RUN crystal spec
77
RUN crystal build main.cr -o sdkgen
88

9-
FROM crystallang/crystal:0.27.0
9+
FROM crystallang/crystal:0.31.1
1010
CMD ["bash"]
1111
COPY --from=0 /tmp/sdkgen /usr/bin

src/main.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ destination = ""
1616
target_name = ""
1717
sources = [] of String
1818

19-
OptionParser.parse! do |parser|
19+
OptionParser.parse do |parser|
2020
parser.banner = "Usage: salute [arguments]"
2121
parser.on("-o NAME", "--output=NAME", "Specifies the output file") { |name| destination = name }
2222
parser.on("-t TARGET", "--target=TARGET", "Specifies the target platform") { |target| target_name = target }

0 commit comments

Comments
 (0)