You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/qapy/cli.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -30,27 +30,27 @@ def main():
30
30
31
31
parser_compile=subparsers.add_parser("compile", help="compile the source code", description="Compile the source code and write the constraints, witness generation functions, and public entry names to files.")
32
32
parser_compile.add_argument("file", type=str, help="path to the source code")
33
-
parser_compile.add_argument("-g", "--gates", type=str, default=None, help="path to write the constraints to (default: a.gates)")
34
-
parser_compile.add_argument("-f", "--funcs", type=str, default=None, help="path to write the witness generation functions to (default: a.funcs)")
35
-
parser_compile.add_argument("-n", "--names", type=str, default=None, help="path to write the public entry names to (default: a.names)")
33
+
parser_compile.add_argument("-g", "--gates", type=str, default=None, help="path to write the constraints to (skipped if not given)")
34
+
parser_compile.add_argument("-f", "--funcs", type=str, default=None, help="path to write the witness generation functions to (skipped if not given)")
35
+
parser_compile.add_argument("-n", "--names", type=str, default=None, help="path to write the public entry names to (skipped if not given)")
36
36
37
37
parser_setup=subparsers.add_parser("setup", help="set up the parameters", description="Set up the parameters for proving and verifying and write them to files.")
38
38
parser_setup.add_argument("file", type=str, nargs="?", help="path to the source code")
39
-
parser_setup.add_argument("-g", "--gates", type=str, default=None, help="path to read the constraints from (default: a.gates)")
39
+
parser_setup.add_argument("-g", "--gates", type=str, default=None, help="path to read the constraints from (required if source code is not given)")
40
40
parser_setup.add_argument("-p", "--pk", type=str, default="a.pk", help="path to write the parameters for proving to (default: a.pk)")
41
41
parser_setup.add_argument("-v", "--vk", type=str, default="a.vk", help="path to write the parameters for verifying to (default: a.vk)")
42
42
43
43
parser_prove=subparsers.add_parser("prove", help="generate a proof", description="Generate a proof and write it to a file")
44
44
parser_prove.add_argument("file", type=str, nargs="?", help="path to the source code")
45
-
parser_prove.add_argument("-g", "--gates", type=str, default=None, help="path to read the constraints from (default: a.gates)")
46
-
parser_prove.add_argument("-f", "--funcs", type=str, default=None, help="path to read the witness generation functions from (default: a.funcs)")
45
+
parser_prove.add_argument("-g", "--gates", type=str, default=None, help="path to read the constraints from (required if source code is not given)")
46
+
parser_prove.add_argument("-f", "--funcs", type=str, default=None, help="path to read the witness generation functions from (required if source code is not given)")
47
47
parser_prove.add_argument("-p", "--pk", type=str, default="a.pk", help="path to read the parameters for proving from (default: a.pk)")
48
48
parser_prove.add_argument("-a", "--args", action=StoreKVPairs, nargs="*", default={}, help="the arguments to the program as key=value pairs")
49
49
parser_prove.add_argument("-P", "--proof", type=str, default="a.proof", help="path to write the proof to (default: a.proof)")
50
50
51
51
parser_verify=subparsers.add_parser("verify", help="verify a proof", description="Verify a proof")
52
52
parser_verify.add_argument("file", type=str, nargs="?", help="path to the source code")
53
-
parser_verify.add_argument("-n", "--names", type=str, default=None, help="path to read the public entry names from (default: a.names)")
53
+
parser_verify.add_argument("-n", "--names", type=str, default=None, help="path to read the public entry names from (required if source code is not given)")
54
54
parser_verify.add_argument("-v", "--vk", type=str, default="a.vk", help="path to read the parameters for verifying from (default: a.vk)")
55
55
parser_verify.add_argument("-P", "--proof", type=str, default="a.proof", help="path to read the proof from (default: a.proof)")
0 commit comments