mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 02:29:00 +08:00
Add -v param, display dracdo_decoder version
This commit is contained in:
parent
c4f10ac1fa
commit
be0f7b7094
@ -16,6 +16,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include "draco/compression/decode.h"
|
#include "draco/compression/decode.h"
|
||||||
|
#include "draco/core/draco_version.h"
|
||||||
#include "draco/core/cycle_timer.h"
|
#include "draco/core/cycle_timer.h"
|
||||||
#include "draco/io/obj_encoder.h"
|
#include "draco/io/obj_encoder.h"
|
||||||
#include "draco/io/parser_utils.h"
|
#include "draco/io/parser_utils.h"
|
||||||
@ -55,6 +56,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_decoder 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