diff --git a/README.md b/README.md index 59c4299..ba76b86 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,18 @@ Name: (KingZulo) is now registered to this address (dero1qy3dspltmkakl4gzpfvhc35 ``` (PS: If anyone want KingZulo I'm kinda willing to give it up) +## Installation + +Install dependencies and run the script with the following command + +``` +$ sudo apt install libwww-curl-perl libjson-perl -y +$ git clone https://git.mysrv.cloud/MySrv.Cloud/Dero_Name_Service_Cli_Tool.git +$ cd Dero_Name_Service_Cli_Tool +$ ./dero_ns_cli.pl --help + +``` + ## More About Dero diff --git a/dero_ns_cli.pl b/dero_ns_cli.pl index 0cb53b5..04dd017 100755 --- a/dero_ns_cli.pl +++ b/dero_ns_cli.pl @@ -28,12 +28,12 @@ use Getopt::Long; my $name; my %options; GetOptions( - 'daemon-rpc=s' => \$options{'daemon-rpc'}, - 'wallet-rpc=s' => \$options{'wallet-rpc'}, + 'daemon-rpc=s' => \$options{'daemon-rpc'}, + 'wallet-rpc=s' => \$options{'wallet-rpc'}, 'register+' => \$options{'register'}, - 'name=s' => \$name, - 'check-list=s' => \$options{'list'}, - 'help+' => \$options{'help'}, + 'name=s' => \$name, + 'check-list=s' => \$options{'list'}, + 'help+' => \$options{'help'}, ); my $daemon = 'https://dero-node.mysrv.cloud'; @@ -138,9 +138,9 @@ if ($options{'register'}) { printf "\rName: (%s) is now registered to this address (%s) - Congratulations!\n", $reg_check->{'name'}, $reg_check->{'address'}; last; } else { - printf "\rWaiting for registered to complete [%d/%d]... ", $count, $max_wait; + printf "\rWaiting for registration to complete [%d/%d]... ", $count, $max_wait; } - die "Something went wrong, it took too long to register.." if $count > $max_wait; + die "Something went wrong, it took too long to register!..\n" if $count > $max_wait; sleep 1; $count++; }