@@ -495,24 +495,8 @@ void usage (void) {
495
495
printf (" --json prints answers and values in json format\n" );
496
496
#endif
497
497
#ifdef USE_PYTHON
498
- printf (" -Z python script file\n" );
498
+ printf (" --python-script/-Z <script-name> python script file\n" );
499
499
#endif
500
- #ifdef USE_PYTHON
501
- printf (" -Z python script file\n" );
502
- #endif
503
- printf (" -W send dialog_list query and wait for answer before reading input\n" );
504
- printf (" -C disable color output\n" );
505
- printf (" -R disable readline\n" );
506
- printf (" -d daemon mode\n" );
507
- printf (" -L <log-name> log file name\n" );
508
- printf (" -U <user-name> change uid after start\n" );
509
- printf (" -G <group-name> change gid after start\n" );
510
- printf (" -D disable output\n" );
511
- printf (" -P <port> port to listen for input commands\n" );
512
- printf (" -S <socket-name> unix socket to create\n" );
513
- printf (" -e <commands> make commands end exit\n" );
514
- printf (" -I use user and chat IDs in updates instead of names\n" );
515
- printf (" -6 use ipv6 (may be unstable)\n" );
516
500
517
501
exit (1 );
518
502
}
@@ -659,6 +643,7 @@ void args_parse (int argc, char **argv) {
659
643
{"accept-any-tcp" , no_argument , 0 , 1001 },
660
644
{"disable-link-preview" , no_argument , 0 , 1002 },
661
645
{"json" , no_argument , 0 , 1003 },
646
+ {"python-script" , required_argument , 0 , 'Z' },
662
647
{0 , 0 , 0 , 0 }
663
648
};
664
649
0 commit comments