From 793c8b9a11f337b8a2a0468419c4392cb019363b Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 23 Sep 2024 01:21:13 +0300 Subject: [PATCH] use name `custom_return_code` instead of `no_return` --- bytebeat_compiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index b752e59..3371a09 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -176,7 +176,8 @@ if __name__ == "__main__": parser.add_argument("-l", "--samples", default=None, type=int, help="length in samples (adds to `-t`; supports negative numbers) : " "default = +0 samples") - parser.add_argument("-a", "--no-return", default=False, action="store_true", + parser.add_argument("-a", "--custom-return-code", default=False, + action="store_true", help="do not insert return statement before the code") parser.add_argument("-u", "--mode", default="sequential", type=str, help="mode of writing: `sequential` or `instant` (the latter is not " @@ -203,7 +204,7 @@ if __name__ == "__main__": raise SystemExit("Empty file or STDIN") # - Compilation - if not args.no_return: # Insert `return` statement + if not args.custom_return_code: # Insert `return` statement # XXX: The bytebeat code is enclosed in parentheses to allow for the # use of commas as a comma operator, enabling more formulas to function. bytebeat_contents = f"return ({bytebeat_contents})"