drewblessing / gitlab-cli

GitLab Command Line Tool - Interact with your GitLab server via the command line to manage snippets, projects and more.
MIT License
166 stars 20 forks source link

Fix subcommand usage print out #4

Closed drewblessing closed 11 years ago

drewblessing commented 11 years ago

The snippet/project subcommands output incorrect usage information: "gitlab edit [PROJECT] [SNIPPET_ID]" instead of "gitlab snippet edit [PROJECT] [SNIPPET_ID]".

drewblessing commented 11 years ago

Fix this by overriding the banner.

def self.banner(task, namespace = true, subcommand = true) "#{basename} #{task.formatted_usage(self, true, subcommand)}" end