File tree 6 files changed +2
-9
lines changed
6 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 38
38
var AccountCmd = & cobra.Command {
39
39
Use : "account" ,
40
40
Short : "Manage accounts of IoTeX blockchain" ,
41
- Args : cobra .MinimumNArgs (1 ),
42
41
}
43
42
44
43
func init () {
Original file line number Diff line number Diff line change 42
42
var ActionCmd = & cobra.Command {
43
43
Use : "action" ,
44
44
Short : "Manage actions of IoTeX blockchain" ,
45
- Args : cobra .MinimumNArgs (1 ),
46
45
}
47
46
48
47
func init () {
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ type aliases struct {
40
40
var AliasCmd = & cobra.Command {
41
41
Use : "alias" ,
42
42
Short : "Manage aliases of IoTeX addresses" ,
43
- Args : cobra .MaximumNArgs (3 ),
44
43
}
45
44
46
45
func init () {
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import (
23
23
var BCCmd = & cobra.Command {
24
24
Use : "bc" ,
25
25
Short : "Deal with block chain of IoTeX blockchain" ,
26
- Args : cobra .ExactArgs (1 ),
27
26
}
28
27
29
28
func init () {
Original file line number Diff line number Diff line change 35
35
36
36
// ConfigCmd represents the config command
37
37
var ConfigCmd = & cobra.Command {
38
- Use : "config" ,
39
- Short : "Set or get configuration for ioctl" ,
40
- ValidArgs : []string {"set" , "get" },
41
- Args : cobra .MinimumNArgs (1 ),
38
+ Use : "config" ,
39
+ Short : "Set or get configuration for ioctl" ,
42
40
}
43
41
44
42
// Config defines the config schema
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import (
15
15
var NodeCmd = & cobra.Command {
16
16
Use : "node" ,
17
17
Short : "Deal with nodes of IoTeX blockchain" ,
18
- Args : cobra .ExactArgs (1 ),
19
18
}
20
19
21
20
func init () {
You can’t perform that action at this time.
0 commit comments