88//! cargo run --bin okx-outcomes -- search "world cup" # search
99//! ```
1010
11- use super :: { APP_NAME , APP_VERSION } ;
11+ use super :: APP_NAME ;
1212
1313/// Run the predictions CLI application.
1414pub async fn run ( ) {
@@ -31,7 +31,7 @@ pub async fn run() {
3131pub ( super ) async fn dispatch ( raw_args : & [ String ] ) {
3232 // Version flag — print and return before any command parsing.
3333 if raw_args. iter ( ) . any ( |a| a == "--version" || a == "-V" ) {
34- println ! ( "{APP_NAME} v{APP_VERSION}" ) ;
34+ println ! ( "{APP_NAME} v{}" , super :: version ( ) ) ;
3535 return ;
3636 }
3737
@@ -145,7 +145,7 @@ fn filter_outer_flags(args: &[String]) -> Vec<&str> {
145145}
146146
147147fn print_help ( ) {
148- println ! ( "OKX Outcomes CLI v{APP_VERSION}" ) ;
148+ println ! ( "OKX Outcomes CLI v{}" , super :: version ( ) ) ;
149149 println ! ( ) ;
150150 println ! ( "USAGE:" ) ;
151151 println ! ( " {APP_NAME} [COMMAND] [OPTIONS]" ) ;
@@ -237,7 +237,7 @@ fn print_help() {
237237 println ! ( " {APP_NAME} account positions -j JSON positions" ) ;
238238 println ! ( " {APP_NAME} clob create-order Place order" ) ;
239239 println ! ( " {APP_NAME} ctf split --market 1 --amount 100 Split position" ) ;
240- println ! ( " {APP_NAME} ws prices 100170100 Stream prices" ) ;
240+ println ! ( " {APP_NAME} ws prices 101663000 Stream prices" ) ;
241241 println ! ( " {APP_NAME} status Check API connectivity" ) ;
242242 println ! ( " {APP_NAME} shell Enter REPL mode" ) ;
243243}
0 commit comments