Skip to content

Commit d1533a0

Browse files
committed
making documentation readable
1 parent ae67610 commit d1533a0

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ Pre-requisites:
3535
- Perl 5.20.2 or higher
3636

3737
Use the following commands to run the perl samples.
38-
- `perl create_policy_with_defaults.pl -nbmaster <masterServer> -username <username> -password <password> -domainName <domainName> -domainType <domainType>`
39-
- `perl create_policy_without_defaults.pl -nbmaster <masterServer> -username <username> -password <password> -domainName <domainName> -domainType <domainType>`
38+
- `perl create_policy_with_defaults.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>]`
39+
- `perl create_policy_without_defaults.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>]`

recipes/perl/create_policy_with_defaults.pl

100755100644
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sub print_disclaimer {
4040
print("-- This script requires Perl 5.20.2 or later --\n");
4141
print("--------------------------------------------------------\n");
4242
print("Executing this library requires some additional libraries like \n\t'LWP' \n\t'JSON'\ \n\t'Getopt'\ \n\n");
43-
print("You can specify the 'nbmaster', 'username' and 'password' as command-line parameters\n");
43+
print("You can specify the 'nbmaster', 'username', 'password', 'domainName' and 'domainType' as command-line parameters\n");
4444
print_usage();
4545
}
4646

@@ -57,19 +57,16 @@ sub user_input {
5757

5858
if ($nbmaster eq "") {
5959
print("Please provide the value for 'nbmaster', 'username' and 'password'");
60-
print_usage();
6160
exit;
6261
}
6362

6463
if ($username eq "") {
6564
print("Please provide the value for 'nbmaster', 'username' and 'password'");
66-
print_usage();
6765
exit;
6866
}
6967

7068
if ($password eq "") {
7169
print("Please provide the value for 'nbmaster', 'username' and 'password'");
72-
print_usage();
7370
exit;
7471
}
7572

recipes/perl/create_policy_without_defaults.pl

100755100644
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sub print_disclaimer {
4040
print("-- This script requires Perl 5.20.2 or later --\n");
4141
print("--------------------------------------------------------\n");
4242
print("Executing this library requires some additional libraries like \n\t'LWP' \n\t'JSON'\ \n\t'Getopt'\ \n\n");
43-
print("You can specify the 'nbmaster', 'username' and 'password' as command-line parameters\n");
43+
print("You can specify the 'nbmaster', 'username', 'password', 'domainName' and 'domainType' as command-line parameters\n");
4444
print_usage();
4545
}
4646

@@ -57,19 +57,16 @@ sub user_input {
5757

5858
if ($nbmaster eq "") {
5959
print("Please provide the value for 'nbmaster', 'username' and 'password'");
60-
print_usage();
6160
exit;
6261
}
6362

6463
if ($username eq "") {
6564
print("Please provide the value for 'nbmaster', 'username' and 'password'");
66-
print_usage();
6765
exit;
6866
}
6967

7068
if ($password eq "") {
7169
print("Please provide the value for 'nbmaster', 'username' and 'password'");
72-
print_usage();
7370
exit;
7471
}
7572

0 commit comments

Comments
 (0)