48 result = optparse.OptionParser()
49 result.add_option(
50 "-m",
51 "--mode",
52 help='Build variants (comma-separated).',
53 metavar='[all,debug,release]',
54 default='release')
55 result.add_option(
56 "-v",
57 "--verbose",
58 help='Verbose output.',
59 default=False,
60 action="store_true")
61 result.add_option(
62 "-c",
63 "--core",
64 help='Run only core benchmarks.',
65 default=False,
66 action="store_true")
67 result.add_option(
68 "--arch",
69 help='Target architectures (comma-separated).',
70 metavar='[all,ia32,x64,simarm,arm,dartc]',
72 result.add_option(
73 "--executable",
74 help='Virtual machine to execute.',
75 metavar='[dart, (path to dart binary)]',
76 default=None)
77 result.add_option(
78 "-w",
79 "--warmup",
80 help='Only run the warmup period.',
81 default=False,
82 action="store_true")
83 return result
84
85