Skip to content
Snippets Groups Projects
Commit ce46c02d authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

use shorter option name

parent c1a59a20
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ use IdPAccountManager::Tools; ...@@ -26,7 +26,7 @@ use IdPAccountManager::Tools;
my %options; my %options;
GetOptions( GetOptions(
\%options, \%options,
'account_profile=s', 'profile=s',
'contacts=s', 'contacts=s',
'delete', 'delete',
'displayname=s', 'displayname=s',
...@@ -79,9 +79,9 @@ for ($action) { ...@@ -79,9 +79,9 @@ for ($action) {
sub add_account { sub add_account {
pod2usage( pod2usage(
-message => "missing account_profile option, aborting\n", -message => "missing profile option, aborting\n",
-verbose => 0 -verbose => 0
) unless $options{account_profile}; ) unless $options{profile};
pod2usage( pod2usage(
-message => "missing sp_entityid option, aborting\n", -message => "missing sp_entityid option, aborting\n",
...@@ -90,7 +90,7 @@ sub add_account { ...@@ -90,7 +90,7 @@ sub add_account {
my $test_account = IdPAccountManager::TestAccount->new( my $test_account = IdPAccountManager::TestAccount->new(
db => $db, db => $db,
profile => $options{account_profile}, profile => $options{profile},
sp_entityid => $options{sp_entityid}, sp_entityid => $options{sp_entityid},
scope => $configuration->{idp_scope}, scope => $configuration->{idp_scope},
); );
...@@ -114,8 +114,8 @@ sub list_accounts { ...@@ -114,8 +114,8 @@ sub list_accounts {
push @{ $args{query} }, sp_entityid => $options{sp_entityid}; push @{ $args{query} }, sp_entityid => $options{sp_entityid};
} }
if ($options{account_profile}) { if ($options{profile}) {
push @{ $args{query} }, profile => $options{account_profile}; push @{ $args{query} }, profile => $options{profile};
} }
if ($options{filter_expired}) { if ($options{filter_expired}) {
...@@ -346,11 +346,11 @@ account-manager-client.pl - Command line client to the Test IdP Account manager ...@@ -346,11 +346,11 @@ account-manager-client.pl - Command line client to the Test IdP Account manager
=head1 SYNOPSIS =head1 SYNOPSIS
B<account-manager-client.pl> B<add_account> B<account-manager-client.pl> B<add_account>
S<B<--account_profile> I<string>> S<B<--profile> I<string>>
S<B<--sp_entityid> I<string>> S<B<--sp_entityid> I<string>>
B<account-manager-client.pl> B<list_accounts> B<account-manager-client.pl> B<list_accounts>
S<[B<--account_profile> I<string>]> S<[B<--profile> I<string>]>
S<[B<--sp_entityid> I<string>]> S<[B<--sp_entityid> I<string>]>
[B<--filter_expired>] [B<--filter_expired>]
[B<--delete>] [B<--delete>]
...@@ -390,13 +390,13 @@ functions. ...@@ -390,13 +390,13 @@ functions.
$> account-manager-client.pl add_account \ $> account-manager-client.pl add_account \
--sp_entityid https://test.federation.renater.fr/test/ressource \ --sp_entityid https://test.federation.renater.fr/test/ressource \
--account_profile student1 --profile student1
Adds a new test account. Adds a new test account.
$> account-manager-client.pl list_accounts \ $> account-manager-client.pl list_accounts \
--sp_entityid https://test.federation.renater.fr/test/ressource \ --sp_entityid https://test.federation.renater.fr/test/ressource \
--account_profile student1 --profile student1
List all test accounts. Criterias can be added to filter test accounts. List all test accounts. Criterias can be added to filter test accounts.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment