Commit 6d92023
committed
A check has been added to know if args has an attribute 'callback'.
If args has no attribute callback, the help text should be printed. Because
there was a check to::
if args.callback is 'x':
It would raise an error before the parser.print_help() was reached.1 parent f0f7dd4 commit 6d92023
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
969 | 971 | | |
970 | 972 | | |
971 | 973 | | |
| |||
979 | 981 | | |
980 | 982 | | |
981 | 983 | | |
982 | | - | |
983 | | - | |
984 | 984 | | |
985 | 985 | | |
0 commit comments