Skip to content

WIP: Display help when gdk is run without arguments

What does this Merge Request do?

Problem

Currently, executing the gdk command without any arguments returns an error message

(in /Users/gotenks/glab/gdk)
=> gdk:  is not a gdk command.
=> See 'gdk help' for more detail.

Other CLI commands will return the default help information when the command is called without any further arguments.

Screen_Shot_2020-03-09_at_4.59.37_pm

Screen_Shot_2020-03-09_at_4.59.26_pm

Screen_Shot_2020-03-09_at_5.00.11_pm

Screen_Shot_2020-03-09_at_5.01.07_pm

We should replicate this behaviour

Solution

This MR:

  • Changes the behaviour to return the same information as the help command
  • Adds specs for the relevant commands

Merge Request checklist

  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.

Merge request reports