Description:
add more description to new_problem git-svn-id: http://theory.cpe.ku.ac.th/grader/cli/trunk/scripts@53 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r19:5d5b7e4073f5 - - 1 file changed: 7 inserted, 1 deleted

@@ -16,25 +16,31
16 16 if ARGV[i]=='-m'
17 17 options[:mem_limit] = ARGV[i+1].to_i if ARGV.length>i+1
18 18 i += 1
19 19 end
20 20 i += 1
21 21 end
22 22 end
23 23
24 24 GRADER_DIR = File.dirname(__FILE__)
25 25
26 26 # print usage
27 27 if ARGV.length < 2
28 - puts "using: new_problem problem number_of_testcase [options]"
28 + puts <<USAGE
29 + using: new_problem problem number_of_testcase [options]
30 + * creates a directory for a problem in the current directory,
31 + * create standard testcase config file
32 + * options: -t time-limit (in seconds)
33 + -m mem-limit (in MB)
34 + USAGE
29 35 exit(127)
30 36 end
31 37
32 38 # processing arguments
33 39 problem = ARGV[0]
34 40 num_testcases = ARGV[1].to_i
35 41
36 42 options = {:time_limit => 1, :mem_limit => 16}
37 43 process_options(options)
38 44
39 45 # start working
40 46 puts "creating directories"
You need to be logged in to leave comments. Login now