mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-07 03:30:06 +01:00
added --out argument
This commit is contained in:
@@ -128,6 +128,12 @@ def create_parser(parser=None):
|
||||
parser.add_argument(
|
||||
'--verbose', '-v', action='count', default=0, help='Increases verbosity level.'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--out', '-o',
|
||||
default=sys.stdout,
|
||||
type=argparse.FileType('w'),
|
||||
help='Write analysis to this file (default to stdout).'
|
||||
)
|
||||
parser.add_argument(
|
||||
'file', type=argparse.FileType('r'), help='Path to object (ASM or instruction file).'
|
||||
)
|
||||
@@ -312,7 +318,7 @@ def main():
|
||||
parser = create_parser()
|
||||
args = parser.parse_args()
|
||||
check_arguments(args, parser)
|
||||
run(args)
|
||||
run(args, output_file=args.out)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user