Skip to content

Commit

Permalink
Ensure cli args are always parsed when retrieving options
Browse files Browse the repository at this point in the history
  • Loading branch information
nzqo committed Mar 8, 2023
1 parent 4a7dad0 commit 371f189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/main/console/commandline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ def self.parse
end

#
# Return the parsed options
# Return the parsed options.
# Ensures that cmd line arguments are parsed.
#
def self.get_options
raise 'Must parse options before retrieving them. Call CommandLine.parse' unless @already_parsed
self.class.parse unless @already_parsed
return @options
end

Expand Down

0 comments on commit 371f189

Please sign in to comment.