gitk: Fix handling of flag arguments