' %s [[section.]option]...' % Script.scriptName, 'Arguments:', ' section: section (default: "session:environment")', ' option: option name',] ) ) Script.parseCommandLine( ignoreErrors = True ) args = Script.getPositionalArgs() session = DSession( ) modified = False for arg in args: section = None option = None if "." in arg: section, option = arg.split( "." ) else: option = arg if section: session.remove( section, option ) else: session.unsetEnv( option ) modified = True if modified: session.write( )