]> git.nbdom.net Git - nb.git/commitdiff
ip-move
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 25 Feb 2017 19:27:57 +0000 (19:27 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 25 Feb 2017 19:27:57 +0000 (19:27 +0000)
bin/ovh-api

index 1f5bc001ce216ebd2ad20df4330c05dfc7bd318c..3c6348a95a717b7bb551cf90fa4c8a537bdc0484 100755 (executable)
@@ -69,7 +69,7 @@ auth() if @KEY < 3;
 
 # Options
 sql() if $Opt{sql};
-ip2local($Opt{ip2local}) if $Opt{ip2local};
+ip_move($Opt{'ip-move'}) if $Opt{'ip-move'};
 
 # Query
 query();
@@ -90,7 +90,7 @@ sub ips() {
   } `ifconfig`;
 }
 
-sub ip2local {
+sub ip_move {
   require Sys::Hostname;
   my ($ip) = @_;
 
@@ -452,7 +452,7 @@ $NAME - Script to query ovh's api
  option[method|m=s] Method (default: GET)
 
  option[sql]        Produce sql to update a database
- option[ip2local=s] Move IP to local
+ option[ip-move=s]  Move IP to local
 
  option[verbose|v+] Verbose mode: increase the verbosity level.
  option[debug+]     Debug mode: increase the verbosity level.