Empty string can't be passed as a required argument #41

Open
cody- opened this Issue Jan 10, 2014 · 0 comments

Comments

Projects
None yet
2 participants

cody- commented Jan 10, 2014

Prerequisites:

.arg()
    .name('name')
    .title('some description')
    .req()
    .end()

Bug:
Pass "" as an argument -> error:

Missing required argument:
  NAME : some description (required)

UPD: Empty string can't be passed as argument at all. Remove .req() from the example above, pass "" as an argument and there will be no arguments at all, but should be argument with name name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment