@@ -22,7 +22,7 @@ var accountsCommands = []cli.Command{
2222 {
2323 Name : "accounts" ,
2424 ShortName : "a" ,
25- Usage : "manage accounts" ,
25+ Usage : "Manage accounts" ,
2626 Category : "Accounts" ,
2727 Subcommands : []cli.Command {
2828 createAccountCommand ,
@@ -31,6 +31,7 @@ var accountsCommands = []cli.Command{
3131 accountInfoCommand ,
3232 removeAccountCommand ,
3333 },
34+ Description : "Manage accounts." ,
3435 },
3536}
3637
@@ -39,38 +40,38 @@ var createAccountCommand = cli.Command{
3940 ShortName : "c" ,
4041 Usage : "Create a new off-chain account with a balance." ,
4142 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." ,
5556 Flags : []cli.Flag {
5657 cli.Uint64Flag {
5758 Name : "balance" ,
58- Usage : "the initial balance of the account" ,
59+ Usage : "The initial balance of the account. " ,
5960 },
6061 cli.Int64Flag {
6162 Name : "expiration_date" ,
62- Usage : "the expiration date of the account expressed " +
63+ Usage : "The expiration date of the account expressed " +
6364 "in seconds since the unix epoch. 0 means " +
64- "it does not expire" ,
65+ "it does not expire. " ,
6566 },
6667 cli.StringFlag {
6768 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. " ,
7071 },
7172 cli.StringFlag {
7273 Name : labelName ,
73- Usage : "(optional) the unique label of the account" ,
74+ Usage : "(optional) The unique label of the account. " ,
7475 },
7576 },
7677 Action : createAccount ,
@@ -152,31 +153,29 @@ var updateAccountCommand = cli.Command{
152153 ShortName : "u" ,
153154 Usage : "Update an existing off-chain account." ,
154155 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." ,
159158 Flags : []cli.Flag {
160159 cli.StringFlag {
161160 Name : idName ,
162- Usage : "the ID of the account to update" ,
161+ Usage : "The ID of the account to update. " ,
163162 },
164163 cli.StringFlag {
165164 Name : labelName ,
166- Usage : "(optional) the unique label of the account" ,
165+ Usage : "(optional) The unique label of the account. " ,
167166 },
168167 cli.Int64Flag {
169168 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. " ,
172171 Value : - 1 ,
173172 },
174173 cli.Int64Flag {
175174 Name : "new_expiration_date" ,
176- Usage : "the new expiration date of the account " +
175+ Usage : "The new expiration date of the account " +
177176 "expressed in seconds since the unix epoch; " +
178177 "-1 means do not update the expiration date; " +
179- "0 means it does not expire" ,
178+ "0 means it does not expire. " ,
180179 Value : - 1 ,
181180 },
182181 },
@@ -243,11 +242,9 @@ func updateAccount(ctx *cli.Context) error {
243242var listAccountsCommand = cli.Command {
244243 Name : "list" ,
245244 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." ,
251248 Action : listAccounts ,
252249}
253250
@@ -275,17 +272,16 @@ var accountInfoCommand = cli.Command{
275272 ShortName : "i" ,
276273 Usage : "Show information about a single off-chain account." ,
277274 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." ,
281277 Flags : []cli.Flag {
282278 cli.StringFlag {
283279 Name : idName ,
284- Usage : "the ID of the account" ,
280+ Usage : "The ID of the account. " ,
285281 },
286282 cli.StringFlag {
287283 Name : labelName ,
288- Usage : "(optional) the unique label of the account" ,
284+ Usage : "(optional) The unique label of the account. " ,
289285 },
290286 },
291287 Action : accountInfo ,
@@ -321,19 +317,17 @@ func accountInfo(ctx *cli.Context) error {
321317var removeAccountCommand = cli.Command {
322318 Name : "remove" ,
323319 ShortName : "r" ,
324- Usage : "Removes an off-chain account from the database." ,
320+ Usage : "Remove an off-chain account from the database." ,
325321 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." ,
329323 Flags : []cli.Flag {
330324 cli.StringFlag {
331325 Name : idName ,
332- Usage : "the ID of the account" ,
326+ Usage : "The ID of the account. " ,
333327 },
334328 cli.StringFlag {
335329 Name : labelName ,
336- Usage : "(optional) the unique label of the account" ,
330+ Usage : "(optional) The unique label of the account. " ,
337331 },
338332 },
339333 Action : removeAccount ,
0 commit comments