@@ -47,9 +47,12 @@ fn parse_usize_ge1(s: &str) -> Result<usize, String> {
4747#[ derive( Parser , Debug ) ]
4848#[ clap( author, version, about, long_about = None ) ]
4949struct Args {
50- #[ clap( long = "program" , help = "Path to the compiled program" ) ]
50+ #[ clap( long = "program" , help = "Absolute path to the compiled program. " ) ]
5151 program : PathBuf ,
52- #[ clap( long = "program_input" , help = "Path to the program input file." ) ]
52+ #[ clap(
53+ long = "program_input" ,
54+ help = "Absolute path to the program input file."
55+ ) ]
5356 program_input : Option < PathBuf > ,
5457 // The path to the JSON file containing the prover parameters (optional).
5558 // The expected file format is:
@@ -69,12 +72,12 @@ struct Args {
6972 // Default parameters are chosen to ensure 96 bits of security.
7073 #[ clap(
7174 long = "prover_params_json" ,
72- help = "The path to the JSON file containing the prover parameters."
75+ help = "Absolute path to the JSON file containing the prover parameters."
7376 ) ]
7477 prover_params_json : Option < PathBuf > ,
7578 #[ clap(
7679 long = "proofs_dir" ,
77- help = "Path to the output directory where the generated proofs will be saved (may include
80+ help = "Absolute path to the output directory where the generated proofs will be saved (may include
7881 multiple proofs from repeated attempts)."
7982 ) ]
8083 proofs_dir : PathBuf ,
@@ -92,7 +95,7 @@ struct Args {
9295 verify : bool ,
9396 #[ clap(
9497 long = "program_output" ,
95- help = "An optional output file path for the program output."
98+ help = "Optional absolute path for the program output."
9699 ) ]
97100 program_output : Option < PathBuf > ,
98101}
@@ -143,7 +146,10 @@ struct CairoProverInputs {
143146}
144147
145148fn main ( ) -> Result < ( ) , StwoRunAndProveError > {
146- let args = Args :: try_parse_from ( env:: args ( ) ) ?;
149+ let args = match Args :: try_parse_from ( env:: args ( ) ) {
150+ Ok ( args) => args,
151+ Err ( err) => err. exit ( ) ,
152+ } ;
147153 let prove_config = ProveConfig {
148154 verify : args. verify ,
149155 proofs_dir : args. proofs_dir ,
0 commit comments