154aa6d63Sopenharmony_ci/* 254aa6d63Sopenharmony_ci * Copyright (c) 2024-2024 Huawei Device Co., Ltd. 354aa6d63Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 454aa6d63Sopenharmony_ci * you may not use this file except in compliance with the License. 554aa6d63Sopenharmony_ci * You may obtain a copy of the License at 654aa6d63Sopenharmony_ci * 754aa6d63Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 854aa6d63Sopenharmony_ci * 954aa6d63Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1054aa6d63Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1154aa6d63Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1254aa6d63Sopenharmony_ci * See the License for the specific language governing permissions and 1354aa6d63Sopenharmony_ci * limitations under the License. 1454aa6d63Sopenharmony_ci */ 1554aa6d63Sopenharmony_ci#include "params_run_tool.h" 1654aa6d63Sopenharmony_ciusing namespace OHOS::SignatureTools; 1754aa6d63Sopenharmony_ciint main(int argc, char** argv) 1854aa6d63Sopenharmony_ci{ 1954aa6d63Sopenharmony_ci // prepare modes vector by macro DEFINE_MODE which subscribe UPDATER_MAIN_PRE_EVENT event 2054aa6d63Sopenharmony_ci bool isSuccess = ParamsRunTool::ProcessCmd(argv, argc); 2154aa6d63Sopenharmony_ci if (isSuccess) { 2254aa6d63Sopenharmony_ci return 0; 2354aa6d63Sopenharmony_ci } 2454aa6d63Sopenharmony_ci return 1; 2554aa6d63Sopenharmony_ci}