mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Add --rules switch to the CLI
This commit is contained in:
parent
552d31a82b
commit
2eff832669
2 changed files with 28 additions and 2 deletions
|
@ -42,6 +42,16 @@ module Ameba::Cli
|
|||
c.except.should eq %w(RULE1 RULE2)
|
||||
end
|
||||
|
||||
it "defaults rules? flag to false" do
|
||||
c = Cli.parse_args %w(file.cr)
|
||||
c.rules?.should eq false
|
||||
end
|
||||
|
||||
it "accepts --rules flag" do
|
||||
c = Cli.parse_args %w(--rules)
|
||||
c.rules?.should eq true
|
||||
end
|
||||
|
||||
it "defaults all? flag to false" do
|
||||
c = Cli.parse_args %w(file.cr)
|
||||
c.all?.should eq false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue