Skip to content

Commit 199752c

Browse files
committed
Fix deprecated $0 variable
1 parent 83dc4bb commit 199752c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dev_journal/cli.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ module DevJournal
110110
end
111111

112112
def parse_options
113-
parser.banner = "Usage: #{$0} [arguments]"
114113
OptionParser.parse do |parser|
114+
parser.banner = "Usage: #{PROGRAM_NAME} [arguments]"
115115
parser.on("-t TYPE", "--type=TYPE", "The type classification that the log event belongs to. example: work, school etc.") { |t| @type = t }
116116
parser.on("-p PROJECT", "--project=PROJECT", "The project that the log event belongs to. This helps group log events together
117117
which might belong to the same type or which my not belong to a type at all.") { |p| @project = p }

0 commit comments

Comments
 (0)