File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ description = "This tool is a machine code de-optimizer. By transforming/mutatin
17
17
base64 = " 0.21.6"
18
18
bitflags = " 2.4.1"
19
19
chrono = " 0.4.31"
20
- clap = { version = " 4.4.7" , features = [" derive" ] }
20
+ clap = { version = " 4.4.7" , features = [" derive" , " cargo " ] }
21
21
colored = " 2.0.4"
22
22
ctrlc = " 3.4.1"
23
23
hex = " 0.4.3"
Original file line number Diff line number Diff line change
1
+ use clap:: crate_version;
1
2
use clap:: CommandFactory ;
2
3
use clap:: Parser ;
3
4
use colored:: Colorize ;
@@ -7,6 +8,8 @@ use std::fs;
7
8
use std:: process;
8
9
use thiserror:: Error ;
9
10
11
+ const VERSION : & str = crate_version ! ( ) ;
12
+
10
13
#[ derive( Error , Debug ) ]
11
14
pub enum ArgParseError {
12
15
#[ error( "Target file not found." ) ]
@@ -22,7 +25,7 @@ pub enum ArgParseError {
22
25
/// QSocket toolkit options.
23
26
#[ derive( Parser , PartialEq , Debug ) ]
24
27
#[ command( name = "Deoptimizer" ) ]
25
- #[ command( version = "1.0.0" ) ]
28
+ #[ command( version = VERSION ) ]
26
29
#[ command( about = "Machine code deoptimizer." , long_about = None ) ]
27
30
pub struct Options {
28
31
/// Target architecture (x86/arm).
You can’t perform that action at this time.
0 commit comments