Land #5121, timestomp arg/opt order fix

bug/bundler_fix
William Vu 2015-04-10 17:18:14 -05:00
commit 9625504f5b
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 11 additions and 2 deletions

View File

@ -52,12 +52,21 @@ class Console::CommandDispatcher::Priv::Timestomp
#
def cmd_timestomp(*args)
if (args.length < 2)
print_line("\nUsage: timestomp file_path OPTIONS\n" +
print_line("\nUsage: timestomp OPTIONS file_path\n" +
@@timestomp_opts.usage)
return
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
accessed = nil
creation = nil