Do not allow interactive assembly, it doesn't work anyway

This commit is contained in:
Zach Riggle committed 2017-02-16 16:48:59 -05:00
1 parent 1f1a6667a1
commit f4b0e3a5b9
1 file changed
+4
+4
View File
@@ -96,6 +96,10 @@ parser.add_argument(
def main(args):
tty = args.output.isatty()
if args.infile.isatty():
parser.print_usage()
sys.exit(1)
data = '\n'.join(args.lines) or args.infile.read()
output = asm(data.replace(';', '\n'))
fmt = args.format or ('hex' if tty else 'raw')