Class: MightyTest::OptionParser
- Inherits:
-
Object
- Object
- MightyTest::OptionParser
- Defined in:
- lib/mighty_test/option_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse(argv) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mighty_test/option_parser.rb', line 5 def parse(argv) argv, literal_args = split(argv, "--") , extra_args = (argv) extra_args += parse_minitest_flags!(argv) unless [:help] [argv + literal_args, extra_args, ] end |
#to_s ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/mighty_test/option_parser.rb', line 13 def to_s <<~USAGE Usage: mt [--all] mt [test file...] [test dir...] mt --watch USAGE end |