Author: bugman Date: Thu Oct 16 17:19:12 2008 New Revision: 7764 URL: http://svn.gna.org/viewcvs/relax?rev=7764&view=rev Log: sys.argv does not need to be passed into arguments(). The optparse module handles all of this. Modified: branches/multi_processor_merge/relax Modified: branches/multi_processor_merge/relax URL: http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/relax?rev=7764&r1=7763&r2=7764&view=diff ============================================================================== --- branches/multi_processor_merge/relax (original) +++ branches/multi_processor_merge/relax Thu Oct 16 17:19:12 2008 @@ -162,7 +162,7 @@ self.licence() - def arguments(self, args): + def arguments(self): """Process the command line arguments.""" # Parser object. @@ -183,7 +183,7 @@ parser.add_option('-n', '--processors', action='store', type='int', dest='n_processors', default=-1, help='set number of processors (may be ignored)') # Parse the options. - (options, args) = parser.parse_args(args) + (options, args) = parser.parse_args() # Debugging flag. if options.debug: @@ -436,7 +436,7 @@ relax_instance = Relax() # Process the command line arguments. - relax_instance.arguments(sys.argv[1:]) + relax_instance.arguments() # Set up the multi-processor elements. callbacks = Application_callback(master=relax_instance)