Home | Sort by relevance Sort by last modified time |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ | |
test_argparse.py | 146 argument_signatures -- a list of Sig objects which specify 170 def no_groups(parser, argument_signatures): 172 for sig in argument_signatures: 175 def one_group(parser, argument_signatures): 178 for sig in argument_signatures: 181 def many_groups(parser, argument_signatures): 183 for i, sig in enumerate(argument_signatures): 230 self._add_arguments(parser, tester.argument_signatures) 264 argument_signatures = [Sig('-x')] variable in class:TestOptionalsSingleDash 278 argument_signatures = variable in class:TestOptionalsSingleDashCombined 304 argument_signatures = [Sig('-foo')] variable in class:TestOptionalsSingleDashLong 318 argument_signatures = [Sig('-f'), Sig('-foobar'), Sig('-foorab')] variable in class:TestOptionalsSingleDashSubsetAmbiguous 334 argument_signatures = [Sig('-foobar'), Sig('-foorab')] variable in class:TestOptionalsSingleDashAmbiguous 350 argument_signatures = [Sig('-1', dest='one')] variable in class:TestOptionalsNumeric 363 argument_signatures = [Sig('--foo')] variable in class:TestOptionalsDoubleDash 377 argument_signatures = [ variable in class:TestOptionalsDoubleDashPartialMatch 395 argument_signatures = [ variable in class:TestOptionalsDoubleDashPrefixMatch 414 argument_signatures = [ variable in class:TestOptionalsSingleDoubleDash 434 argument_signatures = [ variable in class:TestOptionalsAlternatePrefixChars 456 argument_signatures = [ variable in class:TestOptionalsAlternatePrefixCharsAddedHelp 476 argument_signatures = [ variable in class:TestOptionalsAlternatePrefixCharsMultipleShortArgs 498 argument_signatures = [ variable in class:TestOptionalsShortLong 514 argument_signatures = [Sig('--foo-bar'), Sig('--baz', dest='zabbaz')] variable in class:TestOptionalsDest 527 argument_signatures = [Sig('-x'), Sig('-y', default=42)] variable in class:TestOptionalsDefault 539 argument_signatures = [Sig('-x')] variable in class:TestOptionalsNargsDefault 550 argument_signatures = [Sig('-x', nargs=1)] variable in class:TestOptionalsNargs1 561 argument_signatures = [Sig('-x', nargs=3)] variable in class:TestOptionalsNargs3 572 argument_signatures = [ variable in class:TestOptionalsNargsOptional 595 argument_signatures = [ variable in class:TestOptionalsNargsZeroOrMore 614 argument_signatures = [ variable in class:TestOptionalsNargsOneOrMore 631 argument_signatures = [ variable in class:TestOptionalsChoices 648 argument_signatures = [ variable in class:TestOptionalsRequired 661 argument_signatures = [Sig('-x', action='store')] variable in class:TestOptionalsActionStore 672 argument_signatures = [Sig('-y', action='store_const', const=object)] variable in class:TestOptionalsActionStoreConst 683 argument_signatures = [Sig('-z', action='store_false')] variable in class:TestOptionalsActionStoreFalse 694 argument_signatures = [Sig('--apple', action='store_true')] variable in class:TestOptionalsActionStoreTrue 705 argument_signatures = [Sig('--baz', action='append')] variable in class:TestOptionalsActionAppend 717 argument_signatures = [Sig('--baz', action='append', default=['X'])] variable in class:TestOptionalsActionAppendWithDefault 729 argument_signatures = [ variable in class:TestOptionalsActionAppendConst 744 argument_signatures = [ variable in class:TestOptionalsActionAppendConstWithDefault 759 argument_signatures = [Sig('-x', action='count')] variable in class:TestOptionalsActionCount 774 argument_signatures = [Sig('foo')] variable in class:TestPositionalsNargsNone 784 argument_signatures = [Sig('foo', nargs=1)] variable in class:TestPositionalsNargs1 794 argument_signatures = [Sig('foo', nargs=2)] variable in class:TestPositionalsNargs2 804 argument_signatures = [Sig('foo', nargs='*')] variable in class:TestPositionalsNargsZeroOrMore 816 argument_signatures = [Sig('foo', nargs='*', default='bar')] variable in class:TestPositionalsNargsZeroOrMoreDefault 828 argument_signatures = [Sig('foo', nargs='+')] variable in class:TestPositionalsNargsOneOrMore 839 argument_signatures = [Sig('foo', nargs='?')] variable in class:TestPositionalsNargsOptional 850 argument_signatures = [Sig('foo', nargs='?', default=42)] variable in class:TestPositionalsNargsOptionalDefault 863 argument_signatures = [ variable in class:TestPositionalsNargsOptionalConvertedDefault 876 argument_signatures = [Sig('foo'), Sig('bar')] variable in class:TestPositionalsNargsNoneNone 886 argument_signatures = [Sig('foo'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsNone1 896 argument_signatures = [Sig('foo', nargs=2), Sig('bar')] variable in class:TestPositionalsNargs2None 906 argument_signatures = [Sig('foo'), Sig('bar', nargs='*')] variable in class:TestPositionalsNargsNoneZeroOrMore 918 argument_signatures = [Sig('foo'), Sig('bar', nargs='+')] variable in class:TestPositionalsNargsNoneOneOrMore 929 argument_signatures = [Sig('foo'), Sig('bar', nargs='?')] variable in class:TestPositionalsNargsNoneOptional 940 argument_signatures = [Sig('foo', nargs='*'), Sig('bar')] variable in class:TestPositionalsNargsZeroOrMoreNone 952 argument_signatures = [Sig('foo', nargs='+'), Sig('bar')] variable in class:TestPositionalsNargsOneOrMoreNone 963 argument_signatures = [Sig('foo', nargs='?', default=42), Sig('bar')] variable in class:TestPositionalsNargsOptionalNone 974 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='*')] variable in class:TestPositionalsNargs2ZeroOrMore 985 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='+')] variable in class:TestPositionalsNargs2OneOrMore 995 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='?')] variable in class:TestPositionalsNargs2Optional 1006 argument_signatures = [Sig('foo', nargs='*'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsZeroOrMore1 1018 argument_signatures = [Sig('foo', nargs='+'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsOneOrMore1 1029 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsOptional1 1040 argument_signatures = [ variable in class:TestPositionalsNargsNoneZeroOrMore1 1055 argument_signatures = [ variable in class:TestPositionalsNargsNoneOneOrMore1 1070 argument_signatures = [ variable in class:TestPositionalsNargsNoneOptional1 1085 argument_signatures = [ variable in class:TestPositionalsNargsOptionalOptional 1100 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='*')] variable in class:TestPositionalsNargsOptionalZeroOrMore 1113 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='+')] variable in class:TestPositionalsNargsOptionalOneOrMore 1125 argument_signatures = [Sig('spam', choices=set('abcdefg'))] variable in class:TestPositionalsChoicesString 1136 argument_signatures = [Sig('spam', type=int, choices=range(20))] variable in class:TestPositionalsChoicesInt 1147 argument_signatures = [ variable in class:TestPositionalsActionAppend 1163 argument_signatures = [ variable in class:TestOptionalsNumericAndPositionals 1179 argument_signatures = [ variable in class:TestOptionalsAlmostNumericAndPositionals 1195 argument_signatures = [ variable in class:TestEmptyAndSpaceContainingArguments 1215 argument_signatures = [ variable in class:TestPrefixCharacterOnlyArguments 1234 argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')] variable in class:TestNargsZeroOrMore 1250 argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')] variable in class:TestNargsRemainder 1263 argument_signatures = [ variable in class:TestOptionLike 1290 argument_signatures = [ variable in class:TestDefaultSuppress 1310 argument_signatures = [ variable in class:TestParserDefaultSuppress 1330 argument_signatures = [ variable in class:TestParserDefault42 1364 argument_signatures = [ variable in class:TestArgumentsFromFile 1403 argument_signatures = [ variable in class:TestArgumentsFromFileConverter 1457 argument_signatures = [ variable in class:TestFileTypeR 1478 argument_signatures = [ variable in class:TestFileTypeDefaults 1497 argument_signatures = [ variable in class:TestFileTypeRB 1538 argument_signatures = [ variable in class:TestFileTypeW 1554 argument_signatures = [ variable in class:TestFileTypeWB 1570 argument_signatures = [ variable in class:TestTypeCallable 1595 argument_signatures = [ variable in class:TestTypeUserDefined 1619 argument_signatures = [ variable in class:TestTypeClassicClass 1705 argument_signatures = [ variable in class:TestActionUserDefined 2909 argument_signatures = [ variable in class:TestHelpBiggerOptionals 2945 argument_signatures = [ variable in class:TestHelpBiggerOptionalGroups 2990 argument_signatures = [ variable in class:TestHelpBiggerPositionals 3027 argument_signatures = [ variable in class:TestHelpReformatting 3073 argument_signatures = [ variable in class:TestHelpWrappingShortNames 3114 argument_signatures = [ variable in class:TestHelpWrappingLongNames 3167 argument_signatures = [ variable in class:TestHelpUsage 3211 argument_signatures = [] variable in class:TestHelpOnlyUserGroups 3242 argument_signatures = [ variable in class:TestHelpUsageLongProg 3271 argument_signatures = [ variable in class:TestHelpUsageLongProgOptionsWrap 3307 argument_signatures = [ variable in class:TestHelpUsageLongProgPositionalsWrap 3332 argument_signatures = [ variable in class:TestHelpUsageOptionalsWrap 3370 argument_signatures = [ variable in class:TestHelpUsagePositionalsWrap 3404 argument_signatures = [ variable in class:TestHelpUsageOptionalsPositionalsWrap 3440 argument_signatures = [ variable in class:TestHelpUsageOptionalsOnlyWrap 3466 argument_signatures = [ variable in class:TestHelpUsagePositionalsOnlyWrap 3490 argument_signatures = [ variable in class:TestHelpVariableExpansion 3536 argument_signatures = [] variable in class:TestHelpVariableExpansionUsageSupplied 3553 argument_signatures = [] variable in class:TestHelpVariableExpansionNoArguments 3566 argument_signatures = [ variable in class:TestHelpSuppressUsage 3587 argument_signatures = [ variable in class:TestHelpSuppressOptional 3607 argument_signatures = [ variable in class:TestHelpSuppressOptionalGroup 3633 argument_signatures = [ variable in class:TestHelpSuppressPositional 3654 argument_signatures = [ variable in class:TestHelpRequiredOptional 3674 argument_signatures = [ variable in class:TestHelpAlternatePrefixChars 3695 argument_signatures = [ variable in class:TestHelpNoHelpOptional 3718 argument_signatures = [ variable in class:TestHelpVersionOptional 3745 argument_signatures = [ variable in class:TestHelpNone 3769 argument_signatures = [ variable in class:TestHelpTupleMetavar 3802 argument_signatures = [ variable in class:TestHelpRawText 3851 argument_signatures = [ variable in class:TestHelpRawDescription 3896 argument_signatures = [ variable in class:TestHelpArgumentDefaults 3933 argument_signatures = [Sig('-V', '--version', action='version', version='3.6')] variable in class:TestHelpVersionAction [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ | |
test_argparse.py | 146 argument_signatures -- a list of Sig objects which specify 170 def no_groups(parser, argument_signatures): 172 for sig in argument_signatures: 175 def one_group(parser, argument_signatures): 178 for sig in argument_signatures: 181 def many_groups(parser, argument_signatures): 183 for i, sig in enumerate(argument_signatures): 230 self._add_arguments(parser, tester.argument_signatures) 264 argument_signatures = [Sig('-x')] variable in class:TestOptionalsSingleDash 278 argument_signatures = variable in class:TestOptionalsSingleDashCombined 304 argument_signatures = [Sig('-foo')] variable in class:TestOptionalsSingleDashLong 318 argument_signatures = [Sig('-f'), Sig('-foobar'), Sig('-foorab')] variable in class:TestOptionalsSingleDashSubsetAmbiguous 334 argument_signatures = [Sig('-foobar'), Sig('-foorab')] variable in class:TestOptionalsSingleDashAmbiguous 350 argument_signatures = [Sig('-1', dest='one')] variable in class:TestOptionalsNumeric 363 argument_signatures = [Sig('--foo')] variable in class:TestOptionalsDoubleDash 377 argument_signatures = [ variable in class:TestOptionalsDoubleDashPartialMatch 395 argument_signatures = [ variable in class:TestOptionalsDoubleDashPrefixMatch 414 argument_signatures = [ variable in class:TestOptionalsSingleDoubleDash 434 argument_signatures = [ variable in class:TestOptionalsAlternatePrefixChars 456 argument_signatures = [ variable in class:TestOptionalsAlternatePrefixCharsAddedHelp 476 argument_signatures = [ variable in class:TestOptionalsAlternatePrefixCharsMultipleShortArgs 498 argument_signatures = [ variable in class:TestOptionalsShortLong 514 argument_signatures = [Sig('--foo-bar'), Sig('--baz', dest='zabbaz')] variable in class:TestOptionalsDest 527 argument_signatures = [Sig('-x'), Sig('-y', default=42)] variable in class:TestOptionalsDefault 539 argument_signatures = [Sig('-x')] variable in class:TestOptionalsNargsDefault 550 argument_signatures = [Sig('-x', nargs=1)] variable in class:TestOptionalsNargs1 561 argument_signatures = [Sig('-x', nargs=3)] variable in class:TestOptionalsNargs3 572 argument_signatures = [ variable in class:TestOptionalsNargsOptional 595 argument_signatures = [ variable in class:TestOptionalsNargsZeroOrMore 614 argument_signatures = [ variable in class:TestOptionalsNargsOneOrMore 631 argument_signatures = [ variable in class:TestOptionalsChoices 648 argument_signatures = [ variable in class:TestOptionalsRequired 661 argument_signatures = [Sig('-x', action='store')] variable in class:TestOptionalsActionStore 672 argument_signatures = [Sig('-y', action='store_const', const=object)] variable in class:TestOptionalsActionStoreConst 683 argument_signatures = [Sig('-z', action='store_false')] variable in class:TestOptionalsActionStoreFalse 694 argument_signatures = [Sig('--apple', action='store_true')] variable in class:TestOptionalsActionStoreTrue 705 argument_signatures = [Sig('--baz', action='append')] variable in class:TestOptionalsActionAppend 717 argument_signatures = [Sig('--baz', action='append', default=['X'])] variable in class:TestOptionalsActionAppendWithDefault 729 argument_signatures = [ variable in class:TestOptionalsActionAppendConst 744 argument_signatures = [ variable in class:TestOptionalsActionAppendConstWithDefault 759 argument_signatures = [Sig('-x', action='count')] variable in class:TestOptionalsActionCount 774 argument_signatures = [Sig('foo')] variable in class:TestPositionalsNargsNone 784 argument_signatures = [Sig('foo', nargs=1)] variable in class:TestPositionalsNargs1 794 argument_signatures = [Sig('foo', nargs=2)] variable in class:TestPositionalsNargs2 804 argument_signatures = [Sig('foo', nargs='*')] variable in class:TestPositionalsNargsZeroOrMore 816 argument_signatures = [Sig('foo', nargs='*', default='bar')] variable in class:TestPositionalsNargsZeroOrMoreDefault 828 argument_signatures = [Sig('foo', nargs='+')] variable in class:TestPositionalsNargsOneOrMore 839 argument_signatures = [Sig('foo', nargs='?')] variable in class:TestPositionalsNargsOptional 850 argument_signatures = [Sig('foo', nargs='?', default=42)] variable in class:TestPositionalsNargsOptionalDefault 863 argument_signatures = [ variable in class:TestPositionalsNargsOptionalConvertedDefault 876 argument_signatures = [Sig('foo'), Sig('bar')] variable in class:TestPositionalsNargsNoneNone 886 argument_signatures = [Sig('foo'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsNone1 896 argument_signatures = [Sig('foo', nargs=2), Sig('bar')] variable in class:TestPositionalsNargs2None 906 argument_signatures = [Sig('foo'), Sig('bar', nargs='*')] variable in class:TestPositionalsNargsNoneZeroOrMore 918 argument_signatures = [Sig('foo'), Sig('bar', nargs='+')] variable in class:TestPositionalsNargsNoneOneOrMore 929 argument_signatures = [Sig('foo'), Sig('bar', nargs='?')] variable in class:TestPositionalsNargsNoneOptional 940 argument_signatures = [Sig('foo', nargs='*'), Sig('bar')] variable in class:TestPositionalsNargsZeroOrMoreNone 952 argument_signatures = [Sig('foo', nargs='+'), Sig('bar')] variable in class:TestPositionalsNargsOneOrMoreNone 963 argument_signatures = [Sig('foo', nargs='?', default=42), Sig('bar')] variable in class:TestPositionalsNargsOptionalNone 974 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='*')] variable in class:TestPositionalsNargs2ZeroOrMore 985 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='+')] variable in class:TestPositionalsNargs2OneOrMore 995 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='?')] variable in class:TestPositionalsNargs2Optional 1006 argument_signatures = [Sig('foo', nargs='*'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsZeroOrMore1 1018 argument_signatures = [Sig('foo', nargs='+'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsOneOrMore1 1029 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs=1)] variable in class:TestPositionalsNargsOptional1 1040 argument_signatures = [ variable in class:TestPositionalsNargsNoneZeroOrMore1 1055 argument_signatures = [ variable in class:TestPositionalsNargsNoneOneOrMore1 1070 argument_signatures = [ variable in class:TestPositionalsNargsNoneOptional1 1085 argument_signatures = [ variable in class:TestPositionalsNargsOptionalOptional 1100 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='*')] variable in class:TestPositionalsNargsOptionalZeroOrMore 1113 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='+')] variable in class:TestPositionalsNargsOptionalOneOrMore 1125 argument_signatures = [Sig('spam', choices=set('abcdefg'))] variable in class:TestPositionalsChoicesString 1136 argument_signatures = [Sig('spam', type=int, choices=range(20))] variable in class:TestPositionalsChoicesInt 1147 argument_signatures = [ variable in class:TestPositionalsActionAppend 1163 argument_signatures = [ variable in class:TestOptionalsNumericAndPositionals 1179 argument_signatures = [ variable in class:TestOptionalsAlmostNumericAndPositionals 1195 argument_signatures = [ variable in class:TestEmptyAndSpaceContainingArguments 1215 argument_signatures = [ variable in class:TestPrefixCharacterOnlyArguments 1234 argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')] variable in class:TestNargsZeroOrMore 1250 argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')] variable in class:TestNargsRemainder 1263 argument_signatures = [ variable in class:TestOptionLike 1290 argument_signatures = [ variable in class:TestDefaultSuppress 1310 argument_signatures = [ variable in class:TestParserDefaultSuppress 1330 argument_signatures = [ variable in class:TestParserDefault42 1364 argument_signatures = [ variable in class:TestArgumentsFromFile 1403 argument_signatures = [ variable in class:TestArgumentsFromFileConverter 1457 argument_signatures = [ variable in class:TestFileTypeR 1478 argument_signatures = [ variable in class:TestFileTypeDefaults 1497 argument_signatures = [ variable in class:TestFileTypeRB 1538 argument_signatures = [ variable in class:TestFileTypeW 1554 argument_signatures = [ variable in class:TestFileTypeWB 1570 argument_signatures = [ variable in class:TestTypeCallable 1595 argument_signatures = [ variable in class:TestTypeUserDefined 1619 argument_signatures = [ variable in class:TestTypeClassicClass 1705 argument_signatures = [ variable in class:TestActionUserDefined 2909 argument_signatures = [ variable in class:TestHelpBiggerOptionals 2945 argument_signatures = [ variable in class:TestHelpBiggerOptionalGroups 2990 argument_signatures = [ variable in class:TestHelpBiggerPositionals 3027 argument_signatures = [ variable in class:TestHelpReformatting 3073 argument_signatures = [ variable in class:TestHelpWrappingShortNames 3114 argument_signatures = [ variable in class:TestHelpWrappingLongNames 3167 argument_signatures = [ variable in class:TestHelpUsage 3211 argument_signatures = [] variable in class:TestHelpOnlyUserGroups 3242 argument_signatures = [ variable in class:TestHelpUsageLongProg 3271 argument_signatures = [ variable in class:TestHelpUsageLongProgOptionsWrap 3307 argument_signatures = [ variable in class:TestHelpUsageLongProgPositionalsWrap 3332 argument_signatures = [ variable in class:TestHelpUsageOptionalsWrap 3370 argument_signatures = [ variable in class:TestHelpUsagePositionalsWrap 3404 argument_signatures = [ variable in class:TestHelpUsageOptionalsPositionalsWrap 3440 argument_signatures = [ variable in class:TestHelpUsageOptionalsOnlyWrap 3466 argument_signatures = [ variable in class:TestHelpUsagePositionalsOnlyWrap 3490 argument_signatures = [ variable in class:TestHelpVariableExpansion 3536 argument_signatures = [] variable in class:TestHelpVariableExpansionUsageSupplied 3553 argument_signatures = [] variable in class:TestHelpVariableExpansionNoArguments 3566 argument_signatures = [ variable in class:TestHelpSuppressUsage 3587 argument_signatures = [ variable in class:TestHelpSuppressOptional 3607 argument_signatures = [ variable in class:TestHelpSuppressOptionalGroup 3633 argument_signatures = [ variable in class:TestHelpSuppressPositional 3654 argument_signatures = [ variable in class:TestHelpRequiredOptional 3674 argument_signatures = [ variable in class:TestHelpAlternatePrefixChars 3695 argument_signatures = [ variable in class:TestHelpNoHelpOptional 3718 argument_signatures = [ variable in class:TestHelpVersionOptional 3745 argument_signatures = [ variable in class:TestHelpNone 3769 argument_signatures = [ variable in class:TestHelpTupleMetavar 3802 argument_signatures = [ variable in class:TestHelpRawText 3851 argument_signatures = [ variable in class:TestHelpRawDescription 3896 argument_signatures = [ variable in class:TestHelpArgumentDefaults 3933 argument_signatures = [Sig('-V', '--version', action='version', version='3.6')] variable in class:TestHelpVersionAction [all...] |