Skip to content

Commit

Permalink
Update of tool setSpecificUser
Browse files Browse the repository at this point in the history
Check of required values specific user type and owner Id added.
Update of help text.
  • Loading branch information
zoraseb committed May 31, 2021
1 parent a698c3f commit a827bac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions perun-cli/setSpecificUser
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use Perun::Common qw(printMessage);

sub help {
return qq{
Sets specific User. User id is required.
Sets specific User. User id, user Id of owner and type of specific user are required.
--------------------------------------
Available options:
--userId | -u user id
--specUserType | -t type of specific user (service/sponsored)
--owner | -o owner Id
--specUserType | -t type of specific user (SERVICE/SPONSORED)
--owner | -o user Id of owner
--batch | -b batch
--help | -h prints this help
Expand All @@ -31,6 +31,8 @@ GetOptions ("help|h" => sub {

# Check options
unless (defined($userId)) { die "ERROR: userId is required \n";}
unless (defined($specUsrType)) { die "ERROR: Type of specific user is required \n";}
unless (defined($ownerId)) { die "ERROR: owner Id is required \n";}

my $agent = Perun::Agent->new();
my $usersAgent = $agent->getUsersAgent;
Expand Down

0 comments on commit a827bac

Please sign in to comment.