Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/loop/liquidity.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var setLiquidityRuleCommand = cli.Command{
Name: "setrule",
Usage: "set liquidity manager rule for a channel/peer",
Description: "Update or remove the liquidity rule for a channel/peer.",
ArgsUsage: "{shortchanid | peerpubkey}",
ArgsUsage: "{shortchanid | peerpubkey}",
Flags: []cli.Flag{
cli.StringFlag{
Name: "type",
Expand Down
2 changes: 1 addition & 1 deletion cmd/loop/loopin.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func loopIn(ctx *cli.Context) error {
switch {
case ctx.IsSet("amt"):
amtStr = ctx.String("amt")
case ctx.NArg() > 0:
case ctx.NArg() == 1:
amtStr = args[0]
default:
// Show command help if no arguments and flags were provided.
Expand Down
2 changes: 1 addition & 1 deletion cmd/loop/loopout.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func loopOut(ctx *cli.Context) error {
switch {
case ctx.IsSet("amt"):
amtStr = ctx.String("amt")
case ctx.NArg() > 0:
case ctx.NArg() == 1 || ctx.NArg() == 2:
amtStr = args[0]
args = args.Tail()
default:
Expand Down