@@ -22,8 +22,9 @@ import (
22
22
23
23
var cmdlineOptions struct {
24
24
address string
25
- policyId string
26
25
asset string
26
+ policyId string
27
+ poolId string
27
28
}
28
29
29
30
func init () {
@@ -42,6 +43,14 @@ func init() {
42
43
Dest : & (cmdlineOptions .address ),
43
44
CustomFlag : "address" ,
44
45
},
46
+ {
47
+ Name : "asset" ,
48
+ Type : plugin .PluginOptionTypeString ,
49
+ Description : "specifies the asset fingerprint (asset1xxx) to filter on" ,
50
+ DefaultValue : "" ,
51
+ Dest : & (cmdlineOptions .asset ),
52
+ CustomFlag : "asset" ,
53
+ },
45
54
{
46
55
Name : "policy" ,
47
56
Type : plugin .PluginOptionTypeString ,
@@ -51,12 +60,12 @@ func init() {
51
60
CustomFlag : "policy" ,
52
61
},
53
62
{
54
- Name : "asset " ,
63
+ Name : "pool " ,
55
64
Type : plugin .PluginOptionTypeString ,
56
- Description : "specifies the asset fingerprint (asset1xxx) to filter on" ,
65
+ Description : "specifies Pool ID to filter on" ,
57
66
DefaultValue : "" ,
58
- Dest : & (cmdlineOptions .asset ),
59
- CustomFlag : "asset " ,
67
+ Dest : & (cmdlineOptions .poolId ),
68
+ CustomFlag : "pool " ,
60
69
},
61
70
},
62
71
},
@@ -73,6 +82,14 @@ func NewFromCmdlineOptions() plugin.Plugin {
73
82
),
74
83
)
75
84
}
85
+ if cmdlineOptions .asset != "" {
86
+ pluginOptions = append (
87
+ pluginOptions ,
88
+ WithAssetFingerprints (
89
+ strings .Split (cmdlineOptions .asset , "," ),
90
+ ),
91
+ )
92
+ }
76
93
if cmdlineOptions .policyId != "" {
77
94
pluginOptions = append (
78
95
pluginOptions ,
@@ -81,11 +98,11 @@ func NewFromCmdlineOptions() plugin.Plugin {
81
98
),
82
99
)
83
100
}
84
- if cmdlineOptions .asset != "" {
101
+ if cmdlineOptions .poolId != "" {
85
102
pluginOptions = append (
86
103
pluginOptions ,
87
- WithAssetFingerprints (
88
- strings .Split (cmdlineOptions .asset , "," ),
104
+ WithPoolIds (
105
+ strings .Split (cmdlineOptions .poolId , "," ),
89
106
),
90
107
)
91
108
}
0 commit comments