first commit
This commit is contained in:
1
test/data/compare/10_positional/argparse.py
Normal file
1
test/data/compare/10_positional/argparse.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_argument("echo", help="echo the string you use here")
|
1
test/data/compare/10_positional/tiramisu.py
Normal file
1
test/data/compare/10_positional/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(StrOption('echo', 'echo the string you use here', properties=('mandatory', 'positional')))
|
1
test/data/compare/10_positional_default/argparse.py
Normal file
1
test/data/compare/10_positional_default/argparse.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_argument("echo", help="echo the string you use here", default='blah', nargs='?')
|
1
test/data/compare/10_positional_default/tiramisu.py
Normal file
1
test/data/compare/10_positional_default/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(StrOption('echo', 'echo the string you use here', properties=('mandatory', 'positional'), default='blah'))
|
2
test/data/compare/10_positional_int/argparse.py
Normal file
2
test/data/compare/10_positional_int/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument("square", help="display a square of a given number",
|
||||
type=int)
|
1
test/data/compare/10_positional_int/tiramisu.py
Normal file
1
test/data/compare/10_positional_int/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(IntOption('square', 'display a square of a given number', properties=('mandatory', 'positional')))
|
1
test/data/compare/10_positional_list/argparse.py
Normal file
1
test/data/compare/10_positional_list/argparse.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_argument("echo", help="echo the string you use here", nargs='+')
|
1
test/data/compare/10_positional_list/tiramisu.py
Normal file
1
test/data/compare/10_positional_list/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(StrOption('echo', 'echo the string you use here', properties=('mandatory', 'positional'), multi=True))
|
1
test/data/compare/20_bool/argparse.py
Normal file
1
test/data/compare/20_bool/argparse.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_argument('--verbosity', help='increase output verbosity', action='store_true')
|
1
test/data/compare/20_bool/tiramisu.py
Normal file
1
test/data/compare/20_bool/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(BoolOption('verbosity', 'increase output verbosity', default=False))
|
1
test/data/compare/20_bool_true/argparse.py
Normal file
1
test/data/compare/20_bool_true/argparse.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_argument('--verbosity', help='increase output verbosity', action='store_false')
|
1
test/data/compare/20_bool_true/tiramisu.py
Normal file
1
test/data/compare/20_bool_true/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(BoolOption('verbosity', 'increase output verbosity', default=True))
|
2
test/data/compare/20_choice/argparse.py
Normal file
2
test/data/compare/20_choice/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('--door', help='Door numbers', choices=['1', '2', '3'])
|
||||
|
1
test/data/compare/20_choice/tiramisu.py
Normal file
1
test/data/compare/20_choice/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(ChoiceOption('door', 'Door numbers', ('1', '2', '3')))
|
2
test/data/compare/20_int/argparse.py
Normal file
2
test/data/compare/20_int/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('--int', help='integer', type=int)
|
||||
|
1
test/data/compare/20_int/tiramisu.py
Normal file
1
test/data/compare/20_int/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(IntOption('int', 'integer'))
|
2
test/data/compare/20_string/argparse.py
Normal file
2
test/data/compare/20_string/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('--foo', help='foo help')
|
||||
|
2
test/data/compare/20_string/tiramisu.py
Normal file
2
test/data/compare/20_string/tiramisu.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_arguments(StrOption('foo', 'foo help'))
|
||||
|
2
test/data/compare/20_string_list/argparse.py
Normal file
2
test/data/compare/20_string_list/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('--foo', help='foo help', nargs='*')
|
||||
|
2
test/data/compare/20_string_list/tiramisu.py
Normal file
2
test/data/compare/20_string_list/tiramisu.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_arguments(StrOption('foo', 'foo help', multi=True))
|
||||
|
2
test/data/compare/30_choice_int/argparse.py
Normal file
2
test/data/compare/30_choice_int/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('--door', help='Door numbers', choices=[1, 2, 3])
|
||||
|
1
test/data/compare/30_choice_int/tiramisu.py
Normal file
1
test/data/compare/30_choice_int/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments(ChoiceOption('door', 'Door numbers', (1, 2, 3)))
|
2
test/data/compare/30_string_default/argparse.py
Normal file
2
test/data/compare/30_string_default/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('--foo', help='foo help', default='default', nargs='?')
|
||||
|
2
test/data/compare/30_string_default/tiramisu.py
Normal file
2
test/data/compare/30_string_default/tiramisu.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_arguments(StrOption('foo', 'foo help', 'default'))
|
||||
|
1
test/data/compare/30_string_short/argparse.py
Normal file
1
test/data/compare/30_string_short/argparse.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_argument('-f', '--foo', help='foo help')
|
3
test/data/compare/30_string_short/tiramisu.py
Normal file
3
test/data/compare/30_string_short/tiramisu.py
Normal file
@ -0,0 +1,3 @@
|
||||
str_long = StrOption('foo', 'foo help')
|
||||
str_short = SymLinkOption('f', str_long)
|
||||
parser.add_arguments([str_long, str_short])
|
2
test/data/compare/40_multi_bool/argparse.py
Normal file
2
test/data/compare/40_multi_bool/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('-v', help='increase output verbosity', action='store_true')
|
||||
parser.add_argument('-s', help='second argument', action='store_true')
|
1
test/data/compare/40_multi_bool/tiramisu.py
Normal file
1
test/data/compare/40_multi_bool/tiramisu.py
Normal file
@ -0,0 +1 @@
|
||||
parser.add_arguments([BoolOption('v', 'increase output verbosity', default=False), BoolOption('s', 'second argument', default=False)])
|
3
test/data/compare/40_positional_optional/argparse.py
Normal file
3
test/data/compare/40_positional_optional/argparse.py
Normal file
@ -0,0 +1,3 @@
|
||||
parser.add_argument("echo", help="echo the string you use here")
|
||||
parser.add_argument('--verbosity', help='increase output verbosity', action='store_true')
|
||||
|
3
test/data/compare/40_positional_optional/tiramisu.py
Normal file
3
test/data/compare/40_positional_optional/tiramisu.py
Normal file
@ -0,0 +1,3 @@
|
||||
parser.add_arguments([StrOption('echo', 'echo the string you use here', properties=('mandatory', 'positional')),
|
||||
BoolOption('verbosity', 'increase output verbosity', default=False)])
|
||||
|
2
test/data/compare/40_short_long/argparse.py
Normal file
2
test/data/compare/40_short_long/argparse.py
Normal file
@ -0,0 +1,2 @@
|
||||
parser.add_argument('-v', help='increase output verbosity', action='store_true')
|
||||
parser.add_argument('-i', '--int', help='integer', type=int)
|
4
test/data/compare/40_short_long/tiramisu.py
Normal file
4
test/data/compare/40_short_long/tiramisu.py
Normal file
@ -0,0 +1,4 @@
|
||||
int_long = IntOption('int', 'integer')
|
||||
parser.add_arguments([BoolOption('v', 'increase output verbosity', default=False),
|
||||
int_long,
|
||||
SymLinkOption('i', int_long)])
|
Reference in New Issue
Block a user