'Arguments:', ' section: section (defaults to "session:environment")', ' option: option name', ' value: value to be set',] ) ) Script.parseCommandLine( ignoreErrors = True ) args = Script.getPositionalArgs() session = DSession( ) modified = False for arg in args: section = None option = None arg, value = arg.split( "=" ) if "." in arg: section, option = arg.split( "." ) else: option = arg if section: session.set( section, option, value ) else: session.setEnv( option, value ) modified = True if modified: session.write( )