features/todo.feature in gli-2.5.6 vs features/todo.feature in gli-2.6.0.rc1

- old
+ new

@@ -45,10 +45,11 @@ first - help - Shows a list of commands or help for one command initconfig - Initialize the config file using current global options list - List things, such as tasks or contexts ls - LS things, such as tasks or contexts + make - second - third - """ Examples: | help | @@ -57,21 +58,24 @@ Scenario: Help completion mode When I successfully run `todo help -c` Then the output should contain: """ + _doc ch2 chained chained2 create first help initconfig list ls + make new second + third """ Scenario: Help completion mode for partial match When I successfully run `todo help -c ch` Then the output should contain: @@ -124,10 +128,11 @@ help - Shows a list of commands or help for one command initconfig - Initialize the config file using current global options create, new - Create a new task or context list - List things, such as tasks or contexts ls - LS things, such as tasks or contexts + make - third - first - second - chained - chained2, ch2 - @@ -344,9 +349,26 @@ COMMANDS contexts - List contexts tasks - List tasks """ + Scenario: Access to the complex command-line options for nested subcommands + Given I run `todo make -l MAKE task -l TASK bug -l BUG other args` + Then the exit status should be 0 + And the stdout should contain: + """ + new task bug + other,args + BUG + + BUG + TASK + TASK + + MAKE + MAKE + + """ Scenario: Init Config makes a reasonable config file Given a clean home directory When I successfully run `todo --flag foo --switch --no-otherswitch initconfig` Then the config file should contain a section for each command and subcommand