Commit a7c31cb
authored
argparse uses
```
# code42 securitydata notvalid
usage: code42 securitydata [-h] {send-to,write-to,print,clear-checkpoint} ...
code42 securitydata: error: invalid choice: 'notvalid' (choose from 'send-to', u'write-to', u'print', 'clear-checkpoint')
```
So I'm removing those from the relevant strings.repr on the choices when throwing an error, which causes our u-prefixed string literals to print out with the prefix when running the code42cli on python2: (#14)1 parent 9557581 commit a7c31cb
File tree
3 files changed
+6
-6
lines changed- src/code42cli
- profile
- securitydata/subcommands
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments