Skip to content

Commit

Permalink
Remove deprecated bin/hubot option
Browse files Browse the repository at this point in the history
  • Loading branch information
tombell committed Jan 11, 2013
1 parent ecd7c00 commit 9912c26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/hubot
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Switches = [
[ "-l", "--alias ALIAS", "Enable replacing the robot's name with alias" ],
[ "-n", "--name NAME", "The name of the robot in chat" ],
[ "-r", "--require PATH", "Alternative scripts path" ],
[ "-s", "--enable-slash", "Enable replacing the robot's name with '/' (deprecated)" ],
[ "-v", "--version", "Displays the version of hubot installed" ]
]

Expand Down Expand Up @@ -48,6 +47,7 @@ Parser.on "help", (opt, value) ->
process.exit 0

Parser.on "alias", (opt, value) ->
value or= '/'
Options.alias = value

Parser.on "name", (opt, value) ->
Expand All @@ -56,10 +56,6 @@ Parser.on "name", (opt, value) ->
Parser.on "require", (opt, value) ->
Options.scripts.push(value)

Parser.on "enable-slash", (opt) ->
console.log "WARNING: -s and --enable-slash are deprecated please use -l or --alias '/'"
Options.alias = '/'

Parser.on "version", (opt, value) ->
Options.version = true

Expand Down

0 comments on commit 9912c26

Please sign in to comment.