CliFunction

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 3b0a343647
commit a5ec63dc28
39 changed files with 2630 additions and 2399 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import common
parser = common.get_argparse(
parser = self.get_argparse(
argparse_args={'description':'Get the value of a gem5 stat from the stats.txt file.'}
)
parser.add_argument(
@@ -9,6 +9,6 @@ parser.add_argument(
help='Python regexp matching the full stat name of interest',
nargs='?',
)
args = common.setup(parser)
stats = common.get_stats(args.stat)
args = self.setup(parser)
stats = self.get_stats(kwargs['stat'])
print('\n'.join(stats))