public static void main(String[] args) throws Exception {
        Command command = processArgs(args, "VorbisComment");
        
        VorbisFile vf = new VorbisFile(new File(command.inFile));
        
        if (command.command == Commands.List) {
            listTags(vf.getComment());
        } else {
            // Have the new tags added
            addTags(vf.getComment(), command);
            
            // Write out
            List<VorbisAudioData> audio = new ArrayList<VorbisAudioData>();
            VorbisAudioData ad;
            while( (ad = vf.getNextAudioPacket()) != null ) {
                audio.add(ad);
            }

            // Now write out
            vf.close();
            VorbisFile out = new VorbisFile(
                    new FileOutputStream(command.outFile),
                    vf.getSid(),
                    vf.getInfo(),
                    vf.getComment(),
                    vf.getSetup()
            );
            for(VorbisAudioData vad : audio) {
                out.writeAudioData(vad);
            }
            out.close();
        }
    }