code: def configure_args(self, arguments):
          
  
          module, key, config_path = self.check_file_paths(arguments.module,
                                                           arguments.key,
                                                           arguments.config)
          log_dir = self.check_directory_paths(arguments.log_dir)
  
          if arguments.repository_url is None:
              url = default_config['repository']['url']
          else:
              url = arguments.repository_url
  
          args_config = dict(aws=dict(bucket=arguments.bucket),
                             logging=dict(dir=arguments.log_dir,
                                          prefix=arguments.log_prefix),
                             workers=arguments.workers,
                             repository=dict(enabled=arguments.repository,
                                             url=url,
                                             manifest=arguments.repository_manifest,
                                             gpg_verify=arguments.gpg_verify))
  
          if arguments.server is not None:
  
              jump_host = None
              if arguments.jump_server is not None:
                  if arguments.jump_port is not None:
                      jump_port = int(arguments.jump_port)
                  else:
                      jump_port = None
                  jump_host = dict(zip(jump_host_allowed_keys,
                                       [arguments.jump_server,
                                        jump_port,
                                        arguments.jump_username,
                                        arguments.jump_password,
                                        arguments.jump_key]))
  
              if arguments.port is not None:
                  port = int(arguments.port)
              else:
                  port = None
              host = dict(zip(host_allowed_keys,
                              [arguments.server, port, arguments.username,
                               arguments.password, module, key,
                               arguments.filename, jump_host]))
              args_config['hosts'] = []
              args_config['hosts'].append(host)
  
          if config_path is not None:
              try:
                  config = self.load_config(config_path)
                  self.validate_config(config)
                  args_config.update(config)
              except YAMLError as ex:
                  logger.warn('Invalid yaml Format: {0}'.format(ex))
                  raise
              except InvalidConfigurationError as ex:
                  logger.warn(ex)
                  raise
  
          return args_config
docs: Create configuration has from command line arguments
  
          :type arguments: :py:class:`argparse.Namespace`
          :params arguments: arguments produced by :py:meth:`Cli.parse_args()`