Created
April 9, 2010 11:29
-
-
Save olleolleolle/361069 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/bin/trac b/bin/trac | |
| index 33bc8a2..993e1d9 100755 | |
| --- a/bin/trac | |
| +++ b/bin/trac | |
| @@ -61,6 +61,9 @@ command [:newticket] do |c| | |
| c.desc 'component' | |
| c.flag [:c,:component] | |
| + c.desc 'milestone' | |
| + c.flag [:m,:milestone] | |
| + | |
| c.desc 'type' | |
| c.flag [:t,:type] | |
| @@ -72,6 +75,7 @@ command [:newticket] do |c| | |
| query_params['priority'] = options[:p] if options[:p] | |
| query_params['component'] = options[:c] if options[:c] | |
| query_params['type'] = options[:t] if options[:t] | |
| + query_params['milestone'] = options[:m] if options[:m] | |
| query_params['summary'] = args.join(' ') | |
| query_string = '' | |
| query_params.each do |key,value| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment