Skip to content

Commit

Permalink
Merge pull request #2 from robmeek/master
Browse files Browse the repository at this point in the history
Typo: delimeter -> delimiter
  • Loading branch information
ruby0x1 committed Mar 7, 2015
2 parents 642cc55 + 672333f commit 3a7283b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arguable/ArgParser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ArgValues {

class ArgParser {

public static var delimeter : String = '--';
public static var delimiter : String = '--';
public static function parse( args:Array<String> ) : ArgValues {

var _stack : Stack<String> = new Stack<String>();
Expand All @@ -58,7 +58,7 @@ class ArgParser {
if(args.length > 0) {
for(_arg in args) {

if(_arg.substr(0, delimeter.length) == delimeter) {
if(_arg.substr(0, delimiter.length) == delimiter) {

if(!_stack.empty()) {
if(_stack.length == 2) {
Expand All @@ -74,7 +74,7 @@ class ArgParser {
}
}

_stack.push( _arg.substr(ArgParser.delimeter.length, _arg.length - ArgParser.delimeter.length ) );
_stack.push( _arg.substr(ArgParser.delimiter.length, _arg.length - ArgParser.delimiter.length ) );
} else {

if(_stack.length == 2) {
Expand Down

0 comments on commit 3a7283b

Please sign in to comment.