@@ -22,7 +22,7 @@ var accountsCommands = []cli.Command{
22
22
{
23
23
Name : "accounts" ,
24
24
ShortName : "a" ,
25
- Usage : "manage accounts" ,
25
+ Usage : "Manage accounts" ,
26
26
Category : "Accounts" ,
27
27
Subcommands : []cli.Command {
28
28
createAccountCommand ,
@@ -31,6 +31,7 @@ var accountsCommands = []cli.Command{
31
31
accountInfoCommand ,
32
32
removeAccountCommand ,
33
33
},
34
+ Description : "Manage accounts." ,
34
35
},
35
36
}
36
37
@@ -39,38 +40,38 @@ var createAccountCommand = cli.Command{
39
40
ShortName : "c" ,
40
41
Usage : "Create a new off-chain account with a balance." ,
41
42
ArgsUsage : "balance [expiration_date] [--label=LABEL] [--save_to=FILE]" ,
42
- Description : `
43
- Adds an entry to the account database. This entry represents an amount
44
- of satoshis (account balance) that can be spent using off-chain
45
- transactions (e.g. paying invoices).
46
-
47
- Macaroons can be created to be locked to an account. This makes sure
48
- that the bearer of the macaroon can only spend at most that amount of
49
- satoshis through the daemon that has issued the macaroon.
50
-
51
- Accounts only assert a maximum amount spendable. Having a certain
52
- account balance does not guarantee that the node has the channel
53
- liquidity to actually spend that amount.
54
- ` ,
43
+ Description : "Adds an entry to the account database. " +
44
+ "This entry represents an amount of satoshis (account " +
45
+ " balance) that can be spent using off-chain transactions " +
46
+ " (e.g. paying invoices).\n \n " +
47
+
48
+ " Macaroons can be created to be locked to an account. " +
49
+ "This makes sure that the bearer of the macaroon can only " +
50
+ "spend at most that amount of satoshis through the daemon " +
51
+ "that has issued the macaroon. \n \n " +
52
+
53
+ " Accounts only assert a maximum amount spendable. Having " +
54
+ "a certain account balance does not guarantee that the node " +
55
+ "has the channel liquidity to actually spend that amount." ,
55
56
Flags : []cli.Flag {
56
57
cli.Uint64Flag {
57
58
Name : "balance" ,
58
- Usage : "the initial balance of the account" ,
59
+ Usage : "The initial balance of the account. " ,
59
60
},
60
61
cli.Int64Flag {
61
62
Name : "expiration_date" ,
62
- Usage : "the expiration date of the account expressed " +
63
+ Usage : "The expiration date of the account expressed " +
63
64
"in seconds since the unix epoch. 0 means " +
64
- "it does not expire" ,
65
+ "it does not expire. " ,
65
66
},
66
67
cli.StringFlag {
67
68
Name : "save_to" ,
68
- Usage : "store the account macaroon created for the " +
69
- "account to the given file" ,
69
+ Usage : "Store the account macaroon created for the " +
70
+ "account to the given file. " ,
70
71
},
71
72
cli.StringFlag {
72
73
Name : labelName ,
73
- Usage : "(optional) the unique label of the account" ,
74
+ Usage : "(optional) The unique label of the account. " ,
74
75
},
75
76
},
76
77
Action : createAccount ,
@@ -152,31 +153,29 @@ var updateAccountCommand = cli.Command{
152
153
ShortName : "u" ,
153
154
Usage : "Update an existing off-chain account." ,
154
155
ArgsUsage : "[id | label] new_balance [new_expiration_date] [--save_to=]" ,
155
- Description : `
156
- Updates an existing off-chain account and sets either a new balance or
157
- new expiration date or both.
158
- ` ,
156
+ Description : "Updates an existing off-chain account and sets " +
157
+ "either a new balance or new expiration date or both." ,
159
158
Flags : []cli.Flag {
160
159
cli.StringFlag {
161
160
Name : idName ,
162
- Usage : "the ID of the account to update" ,
161
+ Usage : "The ID of the account to update. " ,
163
162
},
164
163
cli.StringFlag {
165
164
Name : labelName ,
166
- Usage : "(optional) the unique label of the account" ,
165
+ Usage : "(optional) The unique label of the account. " ,
167
166
},
168
167
cli.Int64Flag {
169
168
Name : "new_balance" ,
170
- Usage : "the new balance of the account; -1 means do " +
171
- "not update the balance" ,
169
+ Usage : "The new balance of the account; -1 means do " +
170
+ "not update the balance. " ,
172
171
Value : - 1 ,
173
172
},
174
173
cli.Int64Flag {
175
174
Name : "new_expiration_date" ,
176
- Usage : "the new expiration date of the account " +
175
+ Usage : "The new expiration date of the account " +
177
176
"expressed in seconds since the unix epoch; " +
178
177
"-1 means do not update the expiration date; " +
179
- "0 means it does not expire" ,
178
+ "0 means it does not expire. " ,
180
179
Value : - 1 ,
181
180
},
182
181
},
@@ -243,11 +242,9 @@ func updateAccount(ctx *cli.Context) error {
243
242
var listAccountsCommand = cli.Command {
244
243
Name : "list" ,
245
244
ShortName : "l" ,
246
- Usage : "Lists all off-chain accounts." ,
247
- Description : `
248
- Returns all accounts that are currently stored in the account
249
- database.
250
- ` ,
245
+ Usage : "List all off-chain accounts." ,
246
+ Description : "Returns all accounts that are currently stored in " +
247
+ "the account database." ,
251
248
Action : listAccounts ,
252
249
}
253
250
@@ -275,17 +272,16 @@ var accountInfoCommand = cli.Command{
275
272
ShortName : "i" ,
276
273
Usage : "Show information about a single off-chain account." ,
277
274
ArgsUsage : "[id | label]" ,
278
- Description : `
279
- Returns a single account entry from the account database.
280
- ` ,
275
+ Description : "Returns a single account entry from the account " +
276
+ "database." ,
281
277
Flags : []cli.Flag {
282
278
cli.StringFlag {
283
279
Name : idName ,
284
- Usage : "the ID of the account" ,
280
+ Usage : "The ID of the account. " ,
285
281
},
286
282
cli.StringFlag {
287
283
Name : labelName ,
288
- Usage : "(optional) the unique label of the account" ,
284
+ Usage : "(optional) The unique label of the account. " ,
289
285
},
290
286
},
291
287
Action : accountInfo ,
@@ -321,19 +317,17 @@ func accountInfo(ctx *cli.Context) error {
321
317
var removeAccountCommand = cli.Command {
322
318
Name : "remove" ,
323
319
ShortName : "r" ,
324
- Usage : "Removes an off-chain account from the database." ,
320
+ Usage : "Remove an off-chain account from the database." ,
325
321
ArgsUsage : "[id | label]" ,
326
- Description : `
327
- Removes an account entry from the account database.
328
- ` ,
322
+ Description : "Removes an account entry from the account database." ,
329
323
Flags : []cli.Flag {
330
324
cli.StringFlag {
331
325
Name : idName ,
332
- Usage : "the ID of the account" ,
326
+ Usage : "The ID of the account. " ,
333
327
},
334
328
cli.StringFlag {
335
329
Name : labelName ,
336
- Usage : "(optional) the unique label of the account" ,
330
+ Usage : "(optional) The unique label of the account. " ,
337
331
},
338
332
},
339
333
Action : removeAccount ,
0 commit comments