From 611fbd1dab217b0bc84e3d2416a9d8d437c39de0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 17 Jan 2023 15:19:02 +0100 Subject: [PATCH] Aliases and default --- lib/mrsk/cli/app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mrsk/cli/app.rb b/lib/mrsk/cli/app.rb index 10b0c50e..54c0ec7f 100644 --- a/lib/mrsk/cli/app.rb +++ b/lib/mrsk/cli/app.rb @@ -79,8 +79,8 @@ class Mrsk::Cli::App < Mrsk::Cli::Base end desc "logs", "Show last 100 log lines from app on servers" - option :lines, type: :numeric, default: 100, desc: "Number of log lines to pull from each server" - option :grep, desc: "Show lines with grep match only (use this to fetch specific requests by id)" + option :lines, type: :numeric, aliases: "-n", default: 1000, desc: "Number of log lines to pull from each server" + option :grep, aliases: "-g", desc: "Show lines with grep match only (use this to fetch specific requests by id)" def logs # FIXME: Catch when app containers aren't running lines = options[:lines]