From: Yoann G. <jj...@us...> - 2004-09-03 10:43:10
|
Update of /cvsroot/ngetsuite/ngetsuite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25191 Modified Files: ngetsuite.rb Log Message: code cleanup in core, more to come added -M option to change the value for the regex of a queue Index: ngetsuite.rb =================================================================== RCS file: /cvsroot/ngetsuite/ngetsuite/ngetsuite.rb,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** ngetsuite.rb 19 Jun 2004 13:27:48 -0000 1.23 --- ngetsuite.rb 3 Sep 2004 10:42:58 -0000 1.24 *************** *** 9,13 **** [ '--debug', '-d', GetoptLong::NO_ARGUMENT, 'Enable debug mode'], [ '--no-debug', '-D', GetoptLong::NO_ARGUMENT, 'Disable debug mode'], ! [ '--help', '-h', GetoptLong::NO_ARGUMENT, 'Shows this message'], [ '--config-file', '-c', GetoptLong::REQUIRED_ARGUMENT, 'file', 'Use another config file (def: $HOME/.ngetsuite)' ], ['--write-config', '-C', GetoptLong::REQUIRED_ARGUMENT, 'file', 'Write a defaut config file'], --- 9,13 ---- [ '--debug', '-d', GetoptLong::NO_ARGUMENT, 'Enable debug mode'], [ '--no-debug', '-D', GetoptLong::NO_ARGUMENT, 'Disable debug mode'], ! [ '--help', '-h', GetoptLong::NO_ARGUMENT, 'Shows this'], [ '--config-file', '-c', GetoptLong::REQUIRED_ARGUMENT, 'file', 'Use another config file (def: $HOME/.ngetsuite)' ], ['--write-config', '-C', GetoptLong::REQUIRED_ARGUMENT, 'file', 'Write a defaut config file'], *************** *** 20,35 **** [ '--update-group', '-u', GetoptLong::REQUIRED_ARGUMENT, 'groupid', 'Update the header cache for the specified group'], [ '--update-all-groups', '-v', GetoptLong::NO_ARGUMENT, 'Update headers for all groups'], ! [ '--set-group-category', '-S', GetoptLong::REQUIRED_ARGUMENT, 'groupid,category', 'Set the category of the group'], [ '--list-nfos', '-l', GetoptLong::OPTIONAL_ARGUMENT, '[groupid]', 'Lists already fetched nfos' ], [ '--list-releases', '-L', GetoptLong::OPTIONAL_ARGUMENT, '[groupid]', 'Lists detected releases' ], ! [ '--search-releases', '-G', GetoptLong::REQUIRED_ARGUMENT, 'groupid,filter', 'Searches the releases matching a filter for a group' ], [ '--show-nfo', '-n', GetoptLong::REQUIRED_ARGUMENT, 'groupid,nfo_nb', 'Prints the specified nfo' ], [ '--queue-article', '-q', GetoptLong::REQUIRED_ARGUMENT, 'groupid,articleid', 'Adds an article to the download queue'], [ '--queue-regexp', '-r', GetoptLong::REQUIRED_ARGUMENT, 'gid,regexp[,prio,period,dir]', 'Adds a regexp to the download queue' ], ! [ '--set-ignore-regexp', '-I', GetoptLong::REQUIRED_ARGUMENT, 'gid[,regexp]', 'Sets the regexp that nget will use as ignore-regexp (none for remove)' ], [ '--show-queue', '-t', GetoptLong::OPTIONAL_ARGUMENT, '[groupid]', 'Shows the current download queue'], [ '--start-manager', '-m', GetoptLong::NO_ARGUMENT, 'Launches the download manager'], [ '--show-status', '-z', GetoptLong::NO_ARGUMENT, 'Prints the manager status'], ! [ '--search', '-g', GetoptLong::REQUIRED_ARGUMENT, 'groupid,filter', 'Searches the headers matching a filter for a group' ], [ '--set-priority', '-f', GetoptLong::REQUIRED_ARGUMENT, 'queueid,prio', 'Changes the priority of the specified queue' ], [ '--set-period', '-p', GetoptLong::REQUIRED_ARGUMENT, 'queueid,period', 'Changes the period of the specified queue' ], --- 20,35 ---- [ '--update-group', '-u', GetoptLong::REQUIRED_ARGUMENT, 'groupid', 'Update the header cache for the specified group'], [ '--update-all-groups', '-v', GetoptLong::NO_ARGUMENT, 'Update headers for all groups'], ! [ '--group-set-category', '-S', GetoptLong::REQUIRED_ARGUMENT, 'groupid,category', 'Set the category of the group'], [ '--list-nfos', '-l', GetoptLong::OPTIONAL_ARGUMENT, '[groupid]', 'Lists already fetched nfos' ], [ '--list-releases', '-L', GetoptLong::OPTIONAL_ARGUMENT, '[groupid]', 'Lists detected releases' ], ! [ '--search-releases', '-G', GetoptLong::REQUIRED_ARGUMENT, 'groupid,filter', 'Searches the releases matching a filter in a group' ], [ '--show-nfo', '-n', GetoptLong::REQUIRED_ARGUMENT, 'groupid,nfo_nb', 'Prints the specified nfo' ], [ '--queue-article', '-q', GetoptLong::REQUIRED_ARGUMENT, 'groupid,articleid', 'Adds an article to the download queue'], [ '--queue-regexp', '-r', GetoptLong::REQUIRED_ARGUMENT, 'gid,regexp[,prio,period,dir]', 'Adds a regexp to the download queue' ], ! [ '--group-set-ignore-regexp', '-I', GetoptLong::REQUIRED_ARGUMENT, 'gid[,regexp]', 'Sets the regexp that nget will use as ignore-regexp (none to remove)' ], [ '--show-queue', '-t', GetoptLong::OPTIONAL_ARGUMENT, '[groupid]', 'Shows the current download queue'], [ '--start-manager', '-m', GetoptLong::NO_ARGUMENT, 'Launches the download manager'], [ '--show-status', '-z', GetoptLong::NO_ARGUMENT, 'Prints the manager status'], ! [ '--search', '-g', GetoptLong::REQUIRED_ARGUMENT, 'groupid,filter', 'Searches the headers matching a filter in a group' ], [ '--set-priority', '-f', GetoptLong::REQUIRED_ARGUMENT, 'queueid,prio', 'Changes the priority of the specified queue' ], [ '--set-period', '-p', GetoptLong::REQUIRED_ARGUMENT, 'queueid,period', 'Changes the period of the specified queue' ], *************** *** 39,43 **** [ '--set-poll-interval', '-o', GetoptLong::REQUIRED_ARGUMENT, 'intervall', 'Sets the polling intervall of the download manager'], [ '--show-next-queueitem', '-b', GetoptLong::NO_ARGUMENT, 'Shows the next available queue for the manager'], ! [ '--stop-download', '-k', GetoptLong::REQUIRED_ARGUMENT, 'queueid', 'Stop the download of the specified queue'] ] --- 39,44 ---- [ '--set-poll-interval', '-o', GetoptLong::REQUIRED_ARGUMENT, 'intervall', 'Sets the polling intervall of the download manager'], [ '--show-next-queueitem', '-b', GetoptLong::NO_ARGUMENT, 'Shows the next available queue for the manager'], ! [ '--stop-download', '-k', GetoptLong::REQUIRED_ARGUMENT, 'queueid', 'Stop the download of the specified queue'], ! [ '--set-regex', '-M', GetoptLong::REQUIRED_ARGUMENT, 'queueid,newval', 'Change the regex for this queue' ] ] |