Fix interdoc link
Example doc for per-task help
Nuke outdated not-really-doc docs
This requires the dreaded "optional argument value" parser implementation: when a flag can optionally take a value, what does one do with the next token if there is any ambiguity (versus unfilled posargs or values that look like valid task names or other flags).
I think the best way for now is to refuse the temptation to guess, as per PEP20, and raise an error whenever ambiguity strikes. Will take a stab at this and see how hard that is to do.
Fix incorrect examples
DDD for optional flag values, conceptually
Init docstring for Argument
Didn't actually doc how optional flags behave post-parse.
Fix a few basic dumb things
Overhaul new tests to be more comprehensive
Semi-fix optional flag values
Picking this back up...
foo = True
Actually I think the "explicit API call" is cleanest, let's do that.
Add explicit set_value API for Argument
Refactor to use new API call yey
Make 1/2 of optional-value tests pass
Fix boog, make other test pass \o/
Womp, those 2 failing tests now pass \o/ Time to fill in the other 3 skipped ones, then make sure there's a good high level test (or that it's used to fill in per-task help shit).
Merge branch 'master' into per-task-help-53
Tiny lang tweak
Refactor optional-value test setup
Refactoring in test + code re: ambiguous values
First passing ambiguity test
Flesh out other failing ambiguity tests
Failing tests now pass.
Flag test refactor
That's going too far
Failing test re: per-task help (finally)
Skipped tests: filled. Hopefully in bidness.
Wrote failing test for e.g. inv -h taskname - still gotta think a bit more on how that should really be structured (e.g. display docstring? add note about 'to see core options give -h with no task name'? etc) too.
inv -h taskname
Split off #76 for detailed help shit, going with a basic-ish view (aping core help, of course) for now.
Refactor help printing
Per-task test passes!!
Per-task help output works in basic form now!
What's missing still:
Fix doc example to be consistent with reality
Desired actual output re: optional values added to test
DDD re: optional flag in \@task/Task
Add to \@task
optional flag from \@task -> Task
Fix another test
Implement opt-val brackets
Tests pass yey
Done, and done. And...done! unless I broke python 3 somewhere, will find out soon.
More Py3 fixes
I did break it! (Initially in master. Heh.) Fixed now locally, waiting for Travis to confirm.