grendizerufo / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

-quiet command line options #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
run compression of any file.

What is the expected output? What do you see instead?
expected: Empty output
see: thousand of 

NVIDIA Texture Tools - Copyright NVIDIA Corporation 2007

CUDA acceleration ENABLED

time taken: 0.016 seconds

What version of the product are you using? On what operating system?
2.0.6

Please provide any additional information below.

Now i need to manually filter output of nvcompress, to suppress stdout
spam, but don't skip real diagnostic messages:

    nvconvert_proc = subprocess.Popen([NVCOMPRESS_EXE, "-nomips", "-rgb", src,
dst], stdout=subprocess.PIPE)
    for l in nvconvert_proc.stdout:
        if not 'Copyright NVIDIA Corporation' in l and not 'time taken:' in l and
not 'CUDA acceleration ENABLED' in l and l.strip():
            sys.stdout.write(l)

Original issue reported on code.google.com by Dobro...@gmail.com on 23 Mar 2009 at 3:19

GoogleCodeExporter commented 9 years ago
Since there's already a -silent flag it seems to make sense to use it to make 
the output actually silent?

I can introduce another flag, -quiet, but -silent should generally be enough.

Attaching the patch for this issue.

Original comment by arseny.k...@gmail.com on 11 Jun 2014 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch!

Original comment by cast...@gmail.com on 11 Jun 2014 at 7:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1386.

Original comment by cast...@gmail.com on 11 Jun 2014 at 7:46