def competition_submit_cli(self,
                               file_name,
                               message,
                               competition,
                               competition_opt=None,
                               quiet=False):
        """ submit a competition using the client. Arguments are same as for
            competition_submit, except for extra arguments provided here.
             Parameters
            ==========
            competition_opt: an alternative competition option provided by cli
        """
        competition = competition or competition_opt
        try:
            submit_result = self.competition_submit(file_name, message,
                                                    competition, quiet)
        except ApiException as e:
            if e.status == 404:
                print('Could not find competition - please verify that you '
                      'entered the correct competition ID and that the '
                      'competition is still accepting submissions.')
                return None
            else:
                raise e
        return submit_result
def competition_submit_cli ( self , file_name , message , competition , competition_opt = None , quiet = False ) : competition = competition or competition_opt try : submit_result = self . competition_submit ( file_name , message , competition , quiet ) except ApiException as e : if e . status == 404 : print ( 'Could not find competition - please verify that you ' 'entered the correct competition ID and that the ' 'competition is still accepting submissions.' ) return None else : raise e return submit_result
submit a competition using the client. Arguments are same as for
            competition_submit, except for extra arguments provided here.
             Parameters
            ==========
            competition_opt: an alternative competition option provided by cli