Skip to content

Commit

Permalink
Rename name argument to address
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Feb 21, 2020
1 parent 5c2154b commit 7bdd899
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions cmd/attribute.go
Expand Up @@ -30,12 +30,12 @@ func newAttributeCmd() *cobra.Command {

func newAttributeGetCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "get <NAME>",
Use: "get <ADDRESS>",
Short: "Get attribute",
Long: `Get matched attribute at a given address
Arguments:
NAME An address of attribute to get.
ADDRESS An address of attribute to get.
`,
RunE: runAttributeGetCmd,
}
Expand All @@ -55,12 +55,12 @@ func runAttributeGetCmd(cmd *cobra.Command, args []string) error {

func newAttributeSetCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "set <NAME> <VALUE>",
Use: "set <ADDRESS> <VALUE>",
Short: "Set attribute",
Long: `Set a value of matched attribute at a given address
Arguments:
NAME An address of attribute to set.
ADDRESS An address of attribute to set.
VALUE A new value of attribute.
The value is set literally, even if references or expressions.
Thus, if you want to set a string literal "hoge", be sure to
Expand Down
10 changes: 5 additions & 5 deletions cmd/block.go
Expand Up @@ -31,12 +31,12 @@ func newBlockCmd() *cobra.Command {

func newBlockGetCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "get <NAME>",
Use: "get <ADDRESS>",
Short: "Get block",
Long: `Get matched blocks at a given address
Arguments:
NAME An address of block to get.
ADDRESS An address of block to get.
`,
RunE: runBlockGetCmd,
}
Expand All @@ -56,13 +56,13 @@ func runBlockGetCmd(cmd *cobra.Command, args []string) error {

func newBlockMvCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "mv <FROM> <TO>",
Use: "mv <FROM_ADDRESS> <TO_ADDRESS>",
Short: "Move block (Rename block type and labels)",
Long: `Move block (Rename block type and labels)
Arguments:
FROM An old address of block.
TO A new address of block.
FROM_ADDRESS An old address of block.
TO_ADDRESS A new address of block.
`,
RunE: runBlockMvCmd,
}
Expand Down

0 comments on commit 7bdd899

Please sign in to comment.