lncli: capitalizing usage and description for lncli

Just like lnd --help usage and descriptions are capitalized. 
However with lncli this is not the case. This pull requests 
makes it just like lnd.
This commit is contained in:
rvandermeer 2018-02-06 00:05:04 +01:00 committed by Olaoluwa Osuntokun
parent 2099d6fa77
commit a5815e957a

@ -86,7 +86,7 @@ func actionDecorator(f func(*cli.Context) error) func(*cli.Context) error {
var newAddressCommand = cli.Command{ var newAddressCommand = cli.Command{
Name: "newaddress", Name: "newaddress",
Usage: "generates a new address.", Usage: "Generates a new address.",
ArgsUsage: "address-type", ArgsUsage: "address-type",
Description: ` Description: `
Generate a wallet new address. Address-types has to be one of: Generate a wallet new address. Address-types has to be one of:
@ -131,7 +131,7 @@ func newAddress(ctx *cli.Context) error {
var sendCoinsCommand = cli.Command{ var sendCoinsCommand = cli.Command{
Name: "sendcoins", Name: "sendcoins",
Usage: "send bitcoin on-chain to an address", Usage: "Send bitcoin on-chain to an address",
ArgsUsage: "addr amt", ArgsUsage: "addr amt",
Description: ` Description: `
Send amt coins in satoshis to the BASE58 encoded bitcoin address addr. Send amt coins in satoshis to the BASE58 encoded bitcoin address addr.
@ -229,7 +229,7 @@ func sendCoins(ctx *cli.Context) error {
var sendManyCommand = cli.Command{ var sendManyCommand = cli.Command{
Name: "sendmany", Name: "sendmany",
Usage: "send bitcoin on-chain to multiple addresses.", Usage: "Send bitcoin on-chain to multiple addresses.",
ArgsUsage: "send-json-string [--conf_target=N] [--sat_per_byte=P]", ArgsUsage: "send-json-string [--conf_target=N] [--sat_per_byte=P]",
Description: ` Description: `
Create and broadcast a transaction paying the specified amount(s) to the passed address(es). Create and broadcast a transaction paying the specified amount(s) to the passed address(es).
@ -286,7 +286,7 @@ func sendMany(ctx *cli.Context) error {
var connectCommand = cli.Command{ var connectCommand = cli.Command{
Name: "connect", Name: "connect",
Usage: "connect to a remote lnd peer", Usage: "Connect to a remote lnd peer",
ArgsUsage: "<pubkey>@host", ArgsUsage: "<pubkey>@host",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
@ -331,7 +331,7 @@ func connectPeer(ctx *cli.Context) error {
var disconnectCommand = cli.Command{ var disconnectCommand = cli.Command{
Name: "disconnect", Name: "disconnect",
Usage: "disconnect a remote lnd peer identified by public key", Usage: "Disconnect a remote lnd peer identified by public key",
ArgsUsage: "<pubkey>", ArgsUsage: "<pubkey>",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
@ -758,7 +758,7 @@ func listPeers(ctx *cli.Context) error {
var createCommand = cli.Command{ var createCommand = cli.Command{
Name: "create", Name: "create",
Usage: "used to set the wallet password at lnd startup", Usage: "Used to set the wallet password at lnd startup",
Action: actionDecorator(create), Action: actionDecorator(create),
} }
@ -798,7 +798,7 @@ func create(ctx *cli.Context) error {
var unlockCommand = cli.Command{ var unlockCommand = cli.Command{
Name: "unlock", Name: "unlock",
Usage: "unlock encrypted wallet at lnd startup", Usage: "Unlock encrypted wallet at lnd startup",
Action: actionDecorator(unlock), Action: actionDecorator(unlock),
} }
@ -827,7 +827,7 @@ func unlock(ctx *cli.Context) error {
var walletBalanceCommand = cli.Command{ var walletBalanceCommand = cli.Command{
Name: "walletbalance", Name: "walletbalance",
Usage: "compute and display the wallet's current balance", Usage: "Compute and display the wallet's current balance",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "witness_only", Name: "witness_only",
@ -857,7 +857,7 @@ func walletBalance(ctx *cli.Context) error {
var channelBalanceCommand = cli.Command{ var channelBalanceCommand = cli.Command{
Name: "channelbalance", Name: "channelbalance",
Usage: "returns the sum of the total available channel balance across all open channels", Usage: "Returns the sum of the total available channel balance across all open channels",
Action: actionDecorator(channelBalance), Action: actionDecorator(channelBalance),
} }
@ -878,7 +878,7 @@ func channelBalance(ctx *cli.Context) error {
var getInfoCommand = cli.Command{ var getInfoCommand = cli.Command{
Name: "getinfo", Name: "getinfo",
Usage: "returns basic information related to the active daemon", Usage: "Returns basic information related to the active daemon",
Action: actionDecorator(getInfo), Action: actionDecorator(getInfo),
} }
@ -899,7 +899,7 @@ func getInfo(ctx *cli.Context) error {
var pendingChannelsCommand = cli.Command{ var pendingChannelsCommand = cli.Command{
Name: "pendingchannels", Name: "pendingchannels",
Usage: "display information pertaining to pending channels", Usage: "Display information pertaining to pending channels",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "open, o", Name: "open, o",
@ -936,7 +936,7 @@ func pendingChannels(ctx *cli.Context) error {
var listChannelsCommand = cli.Command{ var listChannelsCommand = cli.Command{
Name: "listchannels", Name: "listchannels",
Usage: "list all open channels", Usage: "List all open channels",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "active_only, a", Name: "active_only, a",
@ -966,7 +966,7 @@ func listChannels(ctx *cli.Context) error {
var sendPaymentCommand = cli.Command{ var sendPaymentCommand = cli.Command{
Name: "sendpayment", Name: "sendpayment",
Usage: "send a payment over lightning", Usage: "Send a payment over lightning",
Description: ` Description: `
Send a payment over Lightning. One can either specify the full Send a payment over Lightning. One can either specify the full
parameters of the payment, or just use a payment request which encodes parameters of the payment, or just use a payment request which encodes
@ -1148,7 +1148,7 @@ func sendPaymentRequest(ctx *cli.Context, req *lnrpc.SendRequest) error {
var payInvoiceCommand = cli.Command{ var payInvoiceCommand = cli.Command{
Name: "payinvoice", Name: "payinvoice",
Usage: "pay an invoice over lightning", Usage: "Pay an invoice over lightning",
ArgsUsage: "pay_req", ArgsUsage: "pay_req",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
@ -1188,7 +1188,7 @@ func payInvoice(ctx *cli.Context) error {
var addInvoiceCommand = cli.Command{ var addInvoiceCommand = cli.Command{
Name: "addinvoice", Name: "addinvoice",
Usage: "add a new invoice.", Usage: "Add a new invoice.",
Description: ` Description: `
Add a new invoice, expressing intent for a future payment. Add a new invoice, expressing intent for a future payment.
@ -1400,9 +1400,9 @@ func listInvoices(ctx *cli.Context) error {
var describeGraphCommand = cli.Command{ var describeGraphCommand = cli.Command{
Name: "describegraph", Name: "describegraph",
Description: "prints a human readable version of the known channel " + Description: "Prints a human readable version of the known channel " +
"graph from the PoV of the node", "graph from the PoV of the node",
Usage: "describe the network graph", Usage: "Describe the network graph",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "render", Name: "render",
@ -1595,7 +1595,7 @@ func drawChannelGraph(graph *lnrpc.ChannelGraph) error {
var listPaymentsCommand = cli.Command{ var listPaymentsCommand = cli.Command{
Name: "listpayments", Name: "listpayments",
Usage: "list all outgoing payments", Usage: "List all outgoing payments",
Action: actionDecorator(listPayments), Action: actionDecorator(listPayments),
} }
@ -1616,8 +1616,8 @@ func listPayments(ctx *cli.Context) error {
var getChanInfoCommand = cli.Command{ var getChanInfoCommand = cli.Command{
Name: "getchaninfo", Name: "getchaninfo",
Usage: "get the state of a channel", Usage: "Get the state of a channel",
Description: "prints out the latest authenticated state for a " + Description: "Prints out the latest authenticated state for a " +
"particular channel", "particular channel",
ArgsUsage: "chan_id", ArgsUsage: "chan_id",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -1664,7 +1664,7 @@ func getChanInfo(ctx *cli.Context) error {
var getNodeInfoCommand = cli.Command{ var getNodeInfoCommand = cli.Command{
Name: "getnodeinfo", Name: "getnodeinfo",
Usage: "Get information on a specific node.", Usage: "Get information on a specific node.",
Description: "prints out the latest authenticated node state for an " + Description: "Prints out the latest authenticated node state for an " +
"advertised node", "advertised node",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.StringFlag{ cli.StringFlag{
@ -1776,8 +1776,8 @@ func queryRoutes(ctx *cli.Context) error {
var getNetworkInfoCommand = cli.Command{ var getNetworkInfoCommand = cli.Command{
Name: "getnetworkinfo", Name: "getnetworkinfo",
Usage: "getnetworkinfo", Usage: "Getnetworkinfo",
Description: "returns a set of statistics pertaining to the known channel " + Description: "Returns a set of statistics pertaining to the known channel " +
"graph", "graph",
Action: actionDecorator(getNetworkInfo), Action: actionDecorator(getNetworkInfo),
} }
@ -1923,7 +1923,7 @@ func stopDaemon(ctx *cli.Context) error {
var signMessageCommand = cli.Command{ var signMessageCommand = cli.Command{
Name: "signmessage", Name: "signmessage",
Usage: "sign a message with the node's private key", Usage: "Sign a message with the node's private key",
ArgsUsage: "msg", ArgsUsage: "msg",
Description: ` Description: `
Sign msg with the resident node's private key. Sign msg with the resident node's private key.
@ -1966,7 +1966,7 @@ func signMessage(ctx *cli.Context) error {
var verifyMessageCommand = cli.Command{ var verifyMessageCommand = cli.Command{
Name: "verifymessage", Name: "verifymessage",
Usage: "verify a message signed with the signature", Usage: "Verify a message signed with the signature",
ArgsUsage: "msg signature", ArgsUsage: "msg signature",
Description: ` Description: `
Verify that the message was signed with a properly-formed signature Verify that the message was signed with a properly-formed signature
@ -2030,7 +2030,7 @@ func verifyMessage(ctx *cli.Context) error {
var feeReportCommand = cli.Command{ var feeReportCommand = cli.Command{
Name: "feereport", Name: "feereport",
Usage: "display the current fee policies of all active channels", Usage: "Display the current fee policies of all active channels",
Description: ` Description: `
Returns the current fee policies of all active channels. Returns the current fee policies of all active channels.
Fee policies can be updated using the updatechanpolicy command.`, Fee policies can be updated using the updatechanpolicy command.`,
@ -2054,7 +2054,7 @@ func feeReport(ctx *cli.Context) error {
var updateChannelPolicyCommand = cli.Command{ var updateChannelPolicyCommand = cli.Command{
Name: "updatechanpolicy", Name: "updatechanpolicy",
Usage: "update the channel policy for all channels, or a single channel", Usage: "Update the channel policy for all channels, or a single channel",
ArgsUsage: "base_fee_msat fee_rate time_lock_delta [channel_point]", ArgsUsage: "base_fee_msat fee_rate time_lock_delta [channel_point]",
Description: ` Description: `
Updates the channel policy for all channels, or just a particular channel Updates the channel policy for all channels, or just a particular channel