Land #5121, timestomp arg/opt order fix
commit
9625504f5b
|
@ -52,12 +52,21 @@ class Console::CommandDispatcher::Priv::Timestomp
|
||||||
#
|
#
|
||||||
def cmd_timestomp(*args)
|
def cmd_timestomp(*args)
|
||||||
if (args.length < 2)
|
if (args.length < 2)
|
||||||
print_line("\nUsage: timestomp file_path OPTIONS\n" +
|
print_line("\nUsage: timestomp OPTIONS file_path\n" +
|
||||||
@@timestomp_opts.usage)
|
@@timestomp_opts.usage)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
file_path = args.shift
|
file_path = nil
|
||||||
|
args.each { |a| file_path = a unless a[0] == "-" }
|
||||||
|
|
||||||
|
if file_path.nil?
|
||||||
|
print_line("\nNo file_path specified.")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
args.delete(file_path)
|
||||||
|
|
||||||
modified = nil
|
modified = nil
|
||||||
accessed = nil
|
accessed = nil
|
||||||
creation = nil
|
creation = nil
|
||||||
|
|
Loading…
Reference in New Issue