X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=gruntmaster-problem;h=a03b09396b3e490330f02bb9ce233951aa3c8850;hb=2a4f2cb4e37c020146d2a12021ac8703b299cc27;hp=80aa68d7485f8d38f5894ffe395d4c4912d96bd1;hpb=014ee8a614839ded741f61979d979cdd4f20044c;p=gruntmaster-data.git diff --git a/gruntmaster-problem b/gruntmaster-problem index 80aa68d..a03b093 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -7,7 +7,7 @@ use Gruntmaster::Page::Submit; use IO::Prompter [ -style => 'bold', '-stdio', '-verbatim' ]; use File::Slurp qw/read_file/; use Term::ANSIColor qw/RED RESET/; -use Getopt::Long qw/GetOptions/; +use Getopt::Long qw/:config require_order/; ################################################## @@ -114,14 +114,58 @@ gruntmaster-problem - shell interface to Gruntmaster 6000 problems =head1 SYNOPSIS - gruntmaster-problem add problem_id - gruntmaster-problem list - gruntmaster-problem rm problem_id - gruntmaster-problem show problem_id - + gruntmaster-problem [--contest=mycontest] add problem_id + gruntmaster-problem [--contest=mycontest] list + gruntmaster-problem [--contest=mycontest] rm problem_id + gruntmaster-problem [--contest=mycontest] show problem_id + gruntmaster-problem [--contest=mycontest] set [--file] problem_id key value =head1 DESCRIPTION +gruntmaster-problem is a tool for managing problems. + +Select the contest with the optional argument I<--contest>. + +=over + +=item B + +Prints the list of problems in the selected contest. + +=item B I + +Prints detailed information about problem I. + +=item B I + +Adds a new problem with id I. + +=item B I + +Removes the problem with id I. + +=item B I I I + +Sets the I configuration option of problem I to I. + +=item B --file I I I + +Sets the I configuration option of problem I to the contents of the file I. + +=back + +=head1 AUTHOR + +Marius Gavrilescu Emarius@ieval.roE + +=head1 COPYRIGHT AND LICENSE + +Copyright (C) 2014 by Marius Gavrilescu + +This library is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. =cut