Changeset 346
- Timestamp:
- Sep 1, 2018, 7:14:27 PM (6 years ago)
- Location:
- trunk/ddt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ddt/ddt
r345 r346 21 21 use strict; 22 22 #use warnings; 23 use version; our $VERSION = version->declare('0.11. 0');23 use version; our $VERSION = version->declare('0.11.1'); 24 24 25 25 use Getopt::Long qw(GetOptions); … … 544 544 GetOptions( 545 545 'hostname|h=s' => \$hostname, 546 'sector| d=s'=> \$sector,546 'sector|s|d=s' => \$sector, 547 547 'alias|a=s' => \$alias, 548 548 ); … … 568 568 GetOptions( 569 569 'hostname|h=s' => \$hostname, 570 'sector| d=s'=> \$sector,570 'sector|s|d=s' => \$sector, 571 571 'ip|i=s' => \$ip, 572 572 'mac|m=s' => \$mac, … … 596 596 GetOptions( 597 597 'pool|p=s' => \$pool, 598 'sector| d=s'=> \$sector,598 'sector|s|d=s' => \$sector, 599 599 'mac|m=s' => \$mac, 600 600 'comment|c=s' => \$comment, … … 622 622 GetOptions( 623 623 'hostname|h=s' => \$hostname, 624 'sector| d=s'=> \$sector,624 'sector|s|d=s' => \$sector, 625 625 'ip|i=s' => \$ip, 626 626 'mac|m=s' => \$mac, … … 651 651 GetOptions( 652 652 'hostname|h=s' => \$hostname, 653 'sector| d=s'=> \$sector,653 'sector|s|d=s' => \$sector, 654 654 'ip|i=s' => \$ip, 655 655 'comment|c=s' => \$comment, … … 841 841 GetOptions( 842 842 'hostname|h=s' => \$hostname, 843 'sector| d=s'=> \$sector,843 'sector|s|d=s' => \$sector, 844 844 'ip|i=s' => \$ip, 845 845 'mac|m=s' => \$mac, … … 867 867 GetOptions( 868 868 'hostname|h=s' => \$hostname, 869 'sector| d=s'=> \$sector,869 'sector|s|d=s' => \$sector, 870 870 'ip|i=s' => \$ip, 871 871 ); … … 890 890 GetOptions( 891 891 'hostname|h=s' => \$hostname, 892 'sector| d=s'=> \$sector,892 'sector|s|d=s' => \$sector, 893 893 'ip|i=s' => \$ip, 894 894 ); … … 912 912 913 913 GetOptions( 914 'sector| d=s'=> \$sector,914 'sector|s|d=s' => \$sector, 915 915 'mac|m=s' => \$mac, 916 916 'comment|c=s' => \$comment, … … 957 957 958 958 GetOptions( 959 'sector| d=s'=> \$sector,959 'sector|s|d=s' => \$sector, 960 960 'ip|i=s' => \$ip, 961 961 'mac|m=s' => \$mac, … … 1014 1014 GetOptions( 1015 1015 'hostname|h=s' => \$hostname, 1016 'sector| d=s'=> \$sector,1016 'sector|s|d=s' => \$sector, 1017 1017 'ip|i=s' => \$ip, 1018 1018 'mac|m=s' => \$mac, … … 1334 1334 GetOptions( 1335 1335 'hostname|h=s' => \$hostname, 1336 'sector| d=s'=> \$sector,1336 'sector|s|d=s' => \$sector, 1337 1337 'ip|i=s' => \$ip, 1338 1338 ); … … 1361 1361 GetOptions( 1362 1362 'hostname|h=s' => \$hostname, 1363 'sector| d=s'=> \$sector,1363 'sector|s|d=s' => \$sector, 1364 1364 'ip|i=s' => \$ip, 1365 1365 ); … … 1533 1533 GetOptions( 1534 1534 'hostname|h=s' => \$hostname, 1535 'sector| d=s'=> \$sector,1535 'sector|s|d=s' => \$sector, 1536 1536 'ip|i=s' => \$ip, 1537 1537 ); … … 1582 1582 1583 1583 GetOptions( 1584 'sector| d=s' => \$sector,1584 'sector|s|d=s' => \$sector, 1585 1585 'dns-extension|e=s' => \$dns_extension, 1586 1586 'comment|c=s' => \$comment, … … 1631 1631 GetOptions( 1632 1632 'pool|p=s' => \$pool, 1633 'sector| d=s' => \$sector,1633 'sector|s|d=s' => \$sector, 1634 1634 'file-pool|f=s' => \$file_pool, 1635 1635 'ipaddress-pool|i=s' => \$ipaddress_pool, … … 1834 1834 GetOptions( 1835 1835 'hostname|h=s' => \$hostname, 1836 'sector| d=s'=> \$sector,1836 'sector|s|d=s' => \$sector, 1837 1837 'ip|i=s' => \$ip, 1838 1838 'bootp|b=s' => \$pxe_config, … … 1914 1914 GetOptions( 1915 1915 'hostname|h=s' => \$hostname, 1916 'sector| d=s'=> \$sector,1916 'sector|s|d=s' => \$sector, 1917 1917 'ip|i=s' => \$ip, 1918 1918 ); … … 2857 2857 2858 2858 GetOptions( 2859 'sector| d=s'=> \$sector,2859 'sector|s|d=s' => \$sector, 2860 2860 'filename|f=s' => \$input_file, 2861 2861 'kind|k=s' => \$type_file, -
trunk/ddt/ddt.bash_completion
r345 r346 16 16 return 0 17 17 ;; 18 - s|--sector)18 -d|-s|--sector) 19 19 local showlist=$(ddt show-sector --no-header|awk '{print $1}') 20 20 COMPREPLY=($(compgen -W "${showlist}" -- "$cur"))
Note: See TracChangeset
for help on using the changeset viewer.