Skip to content

Commit

Permalink
Remove default options from Thor CLI to let Configuration handle them
Browse files Browse the repository at this point in the history
  • Loading branch information
toydestroyer committed Sep 16, 2024
1 parent fdd7595 commit 6b17bb5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/solid_queue/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
module SolidQueue
class Cli < Thor
class_option :config_file, type: :string, aliases: "-c",
default: Configuration::DEFAULT_CONFIG_FILE_PATH,
desc: "Path to config file",
desc: "Path to config file (default: #{Configuration::DEFAULT_CONFIG_FILE_PATH}).",
banner: "SOLID_QUEUE_CONFIG"

class_option :recurring_schedule_file, type: :string,
default: Configuration::DEFAULT_RECURRING_SCHEDULE_FILE_PATH,
desc: "Path to recurring schedule definition",
desc: "Path to recurring schedule definition (default: #{Configuration::DEFAULT_RECURRING_SCHEDULE_FILE_PATH}).",
banner: "SOLID_QUEUE_RECURRING_SCHEDULE"

class_option :skip_recurring, type: :boolean, default: false,
Expand Down

0 comments on commit 6b17bb5

Please sign in to comment.