Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: vpython/application/flag_test.go

Issue 2937123003: [vpython] Fix flag parsing bug with "--". (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« vpython/application/flag.go ('K') | « vpython/application/flag.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/application/flag_test.go
diff --git a/vpython/application/flag_test.go b/vpython/application/flag_test.go
index b020a3fef6a5528a049f4ee37ede0746c0e69444..da7b761afd13f7ed562a76c9a27e3cfd8b63c2cb 100644
--- a/vpython/application/flag_test.go
+++ b/vpython/application/flag_test.go
@@ -48,6 +48,12 @@ func TestExtractFlagsForSet(t *testing.T) {
[]string{"-log-level"},
[]string{"--", "ohai"},
},
+
+ {
+ []string{"--log-level", "debug", "-d", "--", "script"},
+ []string{"--log-level", "debug"},
+ []string{"-d", "--", "script"},
+ },
} {
Convey(fmt.Sprintf(`Flags %v are split into %v and %v`, tc.args, tc.self, tc.extra), func() {
self, extra := extractFlagsForSet(tc.args, fs)
« vpython/application/flag.go ('K') | « vpython/application/flag.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698