exe/snap in snapshot_archive-0.22.0 vs exe/snap in snapshot_archive-0.23.0

- old
+ new

@@ -96,12 +96,25 @@ end command(:list) do |c| c.syntax = "snap list" c.description = "List available snapshots" + c.option( + "-o NUMBER_OF_DAYS", + "--older-than-days NUMBER_OF_DAYS", + Numeric, + <<~TXT + Limit the list to snapshots older than NUMBER_OF_DAYS days. This can + be useful for identifying old snapshots to delete. + Defaults to 0. + TXT + ) + c.action do |_args, options| - SnapshotArchive::Cli.list + options.default(older_than_days: 0) + + SnapshotArchive::Cli.list(older_than_days: options.older_than_days) end end command(:show) do |c| c.syntax = "snap show"