Commit e0fb1e3
committed
feat: Allow --export to default to 'accounts.txt' when no argument is provided
This commit modifies the `argparse` setup for the `--export` (-e) argument. By adding `nargs='?'` and `const='accounts.txt'`, the argument can now be used as a flag without requiring a subsequent file path. If the `-e` flag is present without a value, `accounts.txt` will be used as the default input file for export operations. The `default='accounts.txt'` remains to handle cases where the `-e` flag is not provided at all.1 parent 0a1545a commit e0fb1e3
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments