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

Unified Diff: vpython/application/flag.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
« no previous file with comments | « no previous file | vpython/application/flag_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/application/flag.go
diff --git a/vpython/application/flag.go b/vpython/application/flag.go
index 1023136a10ad1ebd4d7ea58e6939b1236e7ae950..821624b1970ac44177f842e587a14c2563e8d5cf 100644
--- a/vpython/application/flag.go
+++ b/vpython/application/flag.go
@@ -95,7 +95,7 @@ func extractFlagsForSet(args []string, fs *flag.FlagSet) (fsArgs, remainder []st
for i := 0; i < len(candidates); {
consume := processOne(candidates[i:])
if consume == 0 {
- fsArgs, remainder = args[:i], candidates[i:]
+ fsArgs, remainder = args[:i], args[i:]
return
}
i += consume
« no previous file with comments | « no previous file | vpython/application/flag_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698