lib/rbnotes/commands/export.rb in rbnotes-0.4.19 vs lib/rbnotes/commands/export.rb in rbnotes-0.4.20
- old
+ new
@@ -20,9 +20,10 @@
# :call-seq:
# execute([a String as timestring], Rbnotes::Conf or Hash) -> nil
def execute(args, conf)
stamp = Rbnotes.utils.read_timestamp(args)
+ args.shift # drop the 1st argument
repo = Textrepo.init(conf)
begin
content = repo.read(stamp)
rescue Textrepo::MissingTimestampError => _