Default cmd args

This commit is contained in:
Vitalii Elenhaupt 2019-07-06 22:42:50 +03:00
parent 0c7811411e
commit 54706192d2
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ require "option_parser"
module Ameba::Cli module Ameba::Cli
extend self extend self
def run(args) def run(args = ARGV)
opts = parse_args args opts = parse_args args
config = Config.load opts.config, opts.colors? config = Config.load opts.config, opts.colors?
config.globs = opts.globs config.globs = opts.globs

View file

@ -1,3 +1,3 @@
require "./ameba/cli/cmd" require "./ameba/cli/cmd"
Ameba::Cli.run(ARGV) Ameba::Cli.run