Commit 8d6c423f authored by Janos Guljas's avatar Janos Guljas

allow no arguments for cli start command

parent 3a709b0c
...@@ -26,6 +26,10 @@ func (c *command) initStartCmd() (err error) { ...@@ -26,6 +26,10 @@ func (c *command) initStartCmd() (err error) {
Use: "start", Use: "start",
Short: "Start a Swarm node", Short: "Start a Swarm node",
RunE: func(cmd *cobra.Command, args []string) (err error) { RunE: func(cmd *cobra.Command, args []string) (err error) {
if len(args) > 0 {
return cmd.Help()
}
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
defer cancel() defer cancel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment