Commit 2f3f26c
Fix pflag binding for demo cmd
Summary:
TSIA. The cmd object passed into PersistentPreRun is the lowermost
level cmd. So the flag lookup on the command only finds the local flags but
not inherited flags. This fixes the lookup for the demo commands.
Test Plan: Build a px binary and tried to deploy demo apps.
Reviewers: michelle
Reviewed By: michelle
Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>
Differential Revision: https://phab.corp.pixielabs.ai/D12006
GitOrigin-RevId: 1f8cdfb1 parent b8c2817 commit 2f3f26c
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
0 commit comments