def get_raw_data(self): """ Parse the raw commandline arguments (from sys.argv) to a dictionary that is understandable to the rest of the framework. """ arguments = self.request.argv[1:] if not arguments[0].startswith('--'): # first argument is the program name arguments = arguments[1:] return parse_kwargs(arguments)
def get_raw_data(self): kwargs = self.request.args return parse_kwargs(kwargs)