mirror of
https://github.com/google/nomulus
synced 2026-09-09 09:36:12 +00:00
Use -t instead of main params for TLDs in nomulus count_domains command (#493)
* Use -t instead of main params for TLDs in nomulus count_domains command This makes the command consistent with list_domains. I use both frequently and it was annoying forgetting which one takes -t and which uses main parameters. Now they both work the same way.
This commit is contained in:
@@ -49,7 +49,7 @@ public class CountDomainsCommandTest extends CommandTestCase<CountDomainsCommand
|
||||
persistActiveDomain(String.format("test-%d.baz", i));
|
||||
}
|
||||
}
|
||||
runCommand("foo");
|
||||
runCommand("-t=foo");
|
||||
assertStdoutIs("foo,51\n");
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class CountDomainsCommandTest extends CommandTestCase<CountDomainsCommand
|
||||
persistDeletedDomain(String.format("del-%d.foo", j), clock.nowUtc().minusYears(1));
|
||||
}
|
||||
persistActiveDomain("not-counted.qux");
|
||||
runCommand("foo", "bar", "baz");
|
||||
runCommand("--tlds=foo,bar,baz");
|
||||
assertStdoutIs("foo,29\nbar,0\nbaz,17\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user