file2lastrev.rb: separate options for Output and VPath

So the `--srcdir` option in this file can override the same option in
`VPath`.
This commit is contained in:
Nobuyoshi Nakada 2022-11-02 11:37:54 +09:00
parent 60f12c7d2e
commit ac06951c31
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 8 additions and 1 deletions

View file

@ -10,6 +10,7 @@ class Output
end
def def_options(opt)
opt.separator(" Output common options:")
opt.on('-o', '--output=PATH') {|v| @path = v}
opt.on('-t', '--timestamp[=PATH]') {|v| @timestamp = v || true}
opt.on('-c', '--[no-]if-change') {|v| @ifchange = v}