Add -g option.
Merge pull request #139 from mashiro/add-global-option

Add -g option.