mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-14 07:06:05 +08:00
Add -v param, display draco_encoder version
This commit is contained in:
parent
8833cf878e
commit
c4f10ac1fa
@ -17,6 +17,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include "draco/compression/encode.h"
|
#include "draco/compression/encode.h"
|
||||||
|
#include "draco/core/draco_version.h"
|
||||||
#include "draco/core/cycle_timer.h"
|
#include "draco/core/cycle_timer.h"
|
||||||
#include "draco/io/mesh_io.h"
|
#include "draco/io/mesh_io.h"
|
||||||
#include "draco/io/point_cloud_io.h"
|
#include "draco/io/point_cloud_io.h"
|
||||||
@ -199,6 +200,9 @@ int main(int argc, char **argv) {
|
|||||||
if (!strcmp("-h", argv[i]) || !strcmp("-?", argv[i])) {
|
if (!strcmp("-h", argv[i]) || !strcmp("-?", argv[i])) {
|
||||||
Usage();
|
Usage();
|
||||||
return 0;
|
return 0;
|
||||||
|
} else if (!strcmp("-v", argv[i])) {
|
||||||
|
printf("draco_encoder version: %s\n", draco::Version());
|
||||||
|
return 0;
|
||||||
} else if (!strcmp("-i", argv[i]) && i < argc_check) {
|
} else if (!strcmp("-i", argv[i]) && i < argc_check) {
|
||||||
options.input = argv[++i];
|
options.input = argv[++i];
|
||||||
} else if (!strcmp("-o", argv[i]) && i < argc_check) {
|
} else if (!strcmp("-o", argv[i]) && i < argc_check) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user