Repository navigation
Commit 77a3b55
committed
cli: Fix zsh completion panic from cross-struct conflict references
DownloadOnlyOpts is flattened into both UpgradeOpts and SwitchOpts, but
its conflicts_with_all referenced "check", which only exists in
UpgradeOpts. clap_complete panics when generating zsh completions if a
conflict references an arg unknown to the command.
Move the "check" conflicts to UpgradeOpts -> check and keep only the
valid conflicts in DownloadOnlyOpts.
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>1 parent 0e72bc0 commit 77a3b55
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments