File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ var setLiquidityRuleCommand = cli.Command{
46
46
Name : "setrule" ,
47
47
Usage : "set liquidity manager rule for a channel/peer" ,
48
48
Description : "Update or remove the liquidity rule for a channel/peer." ,
49
- ArgsUsage : "{shortchanid | peerpubkey}" ,
49
+ ArgsUsage : "{shortchanid | peerpubkey}" ,
50
50
Flags : []cli.Flag {
51
51
cli.StringFlag {
52
52
Name : "type" ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func loopIn(ctx *cli.Context) error {
95
95
switch {
96
96
case ctx .IsSet ("amt" ):
97
97
amtStr = ctx .String ("amt" )
98
- case ctx .NArg () > 0 :
98
+ case ctx .NArg () == 1 :
99
99
amtStr = args [0 ]
100
100
default :
101
101
// Show command help if no arguments and flags were provided.
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ func loopOut(ctx *cli.Context) error {
131
131
switch {
132
132
case ctx .IsSet ("amt" ):
133
133
amtStr = ctx .String ("amt" )
134
- case ctx .NArg () > 0 :
134
+ case ctx .NArg () == 1 || ctx . NArg () == 2 :
135
135
amtStr = args [0 ]
136
136
args = args .Tail ()
137
137
default :
You can’t perform that action at this time.
0 commit comments