| 1 | import os |
| 2 | import flag |
| 3 | |
| 4 | fn main() { |
| 5 | mut fp := flag.new_flag_parser(os.args) |
| 6 | fp.skip_executable() |
| 7 | fp.application('xyz') |
| 8 | fp.version('0.0.2') |
| 9 | fp.usage_example('[NUMBER]...') |
| 10 | fp.usage_example('OPTION') |
| 11 | fp.description('description line 1') |
| 12 | fp.description('description line 2') |
| 13 | fp.footer('footer 1') |
| 14 | fp.footer('footer 2') |
| 15 | rest_of_args := fp.remaining_parameters() |
| 16 | dump(rest_of_args) |
| 17 | } |
| 18 |