| 2527 | |
| 2528 | |
| 2529 | static void burp_usage(const Switches& switches) |
| 2530 | { |
| 2531 | /********************************************** |
| 2532 | * |
| 2533 | * b u r p _ u s a g e |
| 2534 | * |
| 2535 | ********************************************** |
| 2536 | * |
| 2537 | * Functional description |
| 2538 | * print usage information |
| 2539 | * |
| 2540 | **********************************************/ |
| 2541 | const SafeArg sa(SafeArg() << switch_char); |
| 2542 | const SafeArg dummy; |
| 2543 | |
| 2544 | BURP_print(true, 317); // usage |
| 2545 | for (int i = 318; i < 323; ++i) |
| 2546 | BURP_msg_put(true, i, dummy); // usage |
| 2547 | |
| 2548 | BURP_print(true, 95); // msg 95 legal switches are |
| 2549 | const Switches::in_sw_tab_t* const base = switches.getTable(); |
| 2550 | for (const Switches::in_sw_tab_t* p = base; p->in_sw; ++p) |
| 2551 | { |
| 2552 | if (p->in_sw_msg && p->in_sw_optype == boMain) |
| 2553 | BURP_msg_put(true, p->in_sw_msg, sa); |
| 2554 | } |
| 2555 | |
| 2556 | BURP_print(true, 323); // backup options are |
| 2557 | for (const Switches::in_sw_tab_t* p = base; p->in_sw; ++p) |
| 2558 | { |
| 2559 | if (p->in_sw_msg && p->in_sw_optype == boBackup) |
| 2560 | BURP_msg_put(true, p->in_sw_msg, sa); |
| 2561 | } |
| 2562 | |
| 2563 | BURP_print(true, 324); // restore options are |
| 2564 | for (const Switches::in_sw_tab_t* p = base; p->in_sw; ++p) |
| 2565 | { |
| 2566 | if (p->in_sw_msg && p->in_sw_optype == boRestore) |
| 2567 | BURP_msg_put(true, p->in_sw_msg, sa); |
| 2568 | } |
| 2569 | |
| 2570 | BURP_print(true, 325); // general options are |
| 2571 | for (const Switches::in_sw_tab_t* p = base; p->in_sw; ++p) |
| 2572 | { |
| 2573 | if (p->in_sw_msg && p->in_sw_optype == boGeneral) |
| 2574 | BURP_msg_put(true, p->in_sw_msg, sa); |
| 2575 | } |
| 2576 | |
| 2577 | BURP_print(true, 132); // msg 132 switches can be abbreviated to the unparenthesized characters |
| 2578 | } |
| 2579 | |
| 2580 | |
| 2581 | static ULONG get_size(const SCHAR* string, burp_fil* file) |
no test coverage detected