From 3a0dbddb9a6ec13acfd38b0f1a323affa0681e02 Mon Sep 17 00:00:00 2001 From: Lukasz Pawelczyk Date: Wed, 11 May 2016 14:50:27 +0200 Subject: [PATCH] Add tizen version handling to the cmd line tool Change-Id: I4ce2d523599131f64999f227251d31620e3f1749 --- src/cmd/security-manager-cmd.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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")) -- 2.7.4