From: Lukasz Pawelczyk Date: Wed, 11 May 2016 12:50:27 +0000 (+0200) Subject: Add tizen version handling to the cmd line tool X-Git-Tag: accepted/tizen/common/20160602.140046~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a0dbddb9a6ec13acfd38b0f1a323affa0681e02;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git Add tizen version handling to the cmd line tool Change-Id: I4ce2d523599131f64999f227251d31620e3f1749 --- diff --git a/src/cmd/security-manager-cmd.cpp b/src/cmd/security-manager-cmd.cpp index 762587b..4dad63a 100644 --- a/src/cmd/security-manager-cmd.cpp +++ b/src/cmd/security-manager-cmd.cpp @@ -99,6 +99,8 @@ static po::options_description getInstallOptions() "privilege for the application (may occur more than once)") ("uid,u", po::value()->required(), "user identifier number (required)") + ("tizen,t", po::value(), + "target tizen version (e.g. 2.4, 3.0)") ("author-id,c", po::value(), "unique author's identifier (required for trusted_rw paths)") ("install-type", po::value(), @@ -244,6 +246,8 @@ static void parseInstallOptions(int argc, char *argv[], } if (vm.count("uid")) req.uid = vm["uid"].as(); + if (vm.count("tizen")) + req.tizenVersion = vm["tizen"].as(); if (vm.count("author-id")) req.authorName = vm["author-id"].as(); if (vm.count("install-type"))