This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Commit d6aab70
committed
argparse: exit with usage if positional arg missing
If a positional (string) arg is missing, the 'Arg()' function will return an
empty string without indicating that the value is missing. Since (for the
moment) positional args are always required, add an explicit check that the
arg is present and, if not, exit with usage.
Signed-off-by: Victoria Dye <vdye@github.com>1 parent 7ea9882 commit d6aab70
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
0 commit comments