예제 #1
0
 def test_complex_case(self):
     self.assertEqual(
         Flag.split_flag_args(
             ['hello', '--foo', '--bar=baz', '--bing', 'world']),
         ({
             u'bing': True,
             u'foo': True,
             u'bar': u'baz'
         }, [u'hello', u'world']))
예제 #2
0
def scores(_, *args):
    flags, paths = Flag.split_flag_args(args)
    paths = paths or ['']
    printed = False
    for p in paths:
        printed = _scores(p, **flags) or printed

    if printed:
        LOGGER.info('')
    else:
        LOGGER.info('  No matching scores found.\n')
예제 #3
0
 def test_complex_case(self):
     self.assertEqual(
       Flag.split_flag_args(
           ['hello', '--foo', '--bar=baz', '--bing', 'world']),
       ({u'bing': True, u'foo': True, u'bar': u'baz'}, [u'hello', u'world']))