Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 44d835b

Browse files
author
Pavan Kumar
committed
[help] update help various help messages
1 parent 2b9cc4c commit 44d835b

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

configure_cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func newConfigureCmd(e *env) *cobra.Command {
209209
cmd.AddCommand(keyCmd)
210210

211211
emailCmd := &cobra.Command{
212-
Use: "email",
212+
Use: "email [id]",
213213
Short: "Configures the parser email for this project",
214214
Long: "Configures the parser email for current project.",
215215
Run: runWithArgs(e, c.parserEmail),
@@ -218,7 +218,7 @@ func newConfigureCmd(e *env) *cobra.Command {
218218
cmd.AddCommand(emailCmd)
219219

220220
projectCmd := &cobra.Command{
221-
Use: "project",
221+
Use: "project [type]",
222222
Short: "Set the project type to one among listed options",
223223
Long: "Set the project type to one among listed options. For instance, 'parse'",
224224
Run: runWithArgs(e, c.projectType),

list_cmd.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ func (l *listCmd) run(e *env, args []string) error {
4545
func newListCmd(e *env) *cobra.Command {
4646
l := listCmd{}
4747
return &cobra.Command{
48-
Use: "list",
49-
Short: "Lists Parse apps associated with current Parse account",
48+
Use: "list [app]",
49+
Short: "Lists properties of given Parse app and Parse apps associated with given project",
5050
Long: `Lists Parse apps and aliases added to the current Cloud Code directory
5151
when executed inside the directory.
52-
Additionally, it prints the list of Parse apps associated with current Parse account.`,
52+
Additionally, it prints the list of Parse apps associated with current Parse account.
53+
If an optional app name is provided, it prints all the keys for that app.`,
5354
Run: runWithArgs(e, l.run),
5455
}
5556
}

new.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,11 @@ func newNewCmd(e *env) *cobra.Command {
328328
nc := newCmd{addApplication: true}
329329
cmd := &cobra.Command{
330330
Use: "new",
331-
Short: "Creates a new Parse app and adds Cloud Code to an existing Parse app",
332-
Long: `Creates a new Parse app and adds Cloud Code to an existing Parse app.`,
333-
Run: runNoArgs(e, nc.run),
331+
Short: "Adds Cloud Code to an existing Parse app, additional can create a new Parse app",
332+
Long: `Adds Cloud Code to an existing Parse app, additional can create a new Parse app.
333+
You can also use it in non-interactive mode by using the various flags available.
334+
`,
335+
Run: runNoArgs(e, nc.run),
334336
}
335337
cmd.Flags().BoolVarP(&nc.noCode, "config", "c", nc.noCode,
336338
"Create a Cloud Code project only with configuration.")

0 commit comments

Comments
 (0)