New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change short flag for version command to "v" #1535

merged 3 commits into from Mar 8, 2018
Diff settings


Just for now

@@ -11,7 +11,7 @@ internal struct MainCommand: CommandGroup {
init(commands: [String: CommandRunnable], defaultRunnable: CommandRunnable?) {
self.commands = commands
self.options = [
.flag(name: "version", short: "c", help: ["Displays the framework's version"])
.flag(name: "version", short: "v", help: ["Displays the framework's version"])
] = ["Runs your Vapor application's commands"]
self.defaultRunnable = defaultRunnable
@@ -20,7 +20,7 @@ extension Router {

/// Registers a route handler at the supplied path.
fileprivate func on<C, T>(
public func on<C, T>(
_ method: HTTPMethod,
at path: [PathComponent],
use closure: @escaping RequestDecodableResponder<C, T>.Closure
ProTip! Use n and p to navigate between commits in a pull request.