@@ -66,12 +66,9 @@ fn main() {
6666fn solve_error_kind ( e : & anyhow:: Error ) -> Kind {
6767 for cause in e. chain ( ) {
6868 // check for authorization error
69- println ! ( "{:?}" , cause) ;
7069 if let Some ( CoreError :: HttpError ( _, status_code, _) ) = cause. downcast_ref :: < CoreError > ( ) {
7170 if status_code. as_u16 ( ) == 403 {
7271 return Kind :: AuthorizationError ;
73- } else {
74- return Kind :: HttpError ( status_code. as_u16 ( ) ) ;
7572 }
7673 }
7774 // check for connection error
@@ -1071,7 +1068,7 @@ fn run_core(matches: &ArgMatches) -> Result<PrintToken> {
10711068 let save_old_state = matches. is_present ( "save-old-state" ) ;
10721069
10731070 if save_old_state {
1074- let submission_url = matches. value_of ( "submission_url " ) . unwrap ( ) ;
1071+ let submission_url = matches. value_of ( "submission-url " ) . unwrap ( ) ;
10751072 let submission_url = into_url ( submission_url) ?;
10761073 core. increment_progress_steps ( ) ;
10771074 core. submit ( submission_url, exercise_path, None ) ?;
@@ -1101,7 +1098,7 @@ fn run_core(matches: &ArgMatches) -> Result<PrintToken> {
11011098
11021099 core. increment_progress_steps ( ) ;
11031100 if save_old_state {
1104- let submission_url = matches. value_of ( "submission_url " ) . unwrap ( ) ;
1101+ let submission_url = matches. value_of ( "submission-url " ) . unwrap ( ) ;
11051102 let submission_url = into_url ( submission_url) ?;
11061103 core. increment_progress_steps ( ) ;
11071104 core. submit ( submission_url, output_path, None ) ?;
0 commit comments