Skip to content

Conversation

@tbartlett0
Copy link

Adds the option to specify "double_flags=False" to avoid generating flags for the default option. (EG, if default is 'foo=True', it will only generate '--no-foo' option and not the redundant '--foo' option.)

double_flags defaults to True (ie, the same behaviour as before).

This patch also changes the order flag arguments are generated in; the non-default is always generated first (ie '--foo' if default false, '--no-foo' if default true). A test case has been updated to reflect this change.

tbartlett0 and others added 8 commits January 18, 2017 02:27
This change removed the ability to use 'if begin.start():' so
isn't backward compatible: discussion needed before merging.

This reverts commit 318db8a.
Adjusted test to expect the non-default flag option to be first.
Adjusted help for flag options to only display for non-default option,
as per sh0oki's existing code's function.
…tart() returns last return code'

(This change removed the ability to use 'if begin.start():' so
isn't backward compatible: discussion needed before merging.)
Adjusted test to expect the non-default flag option to be first.
Adjusted help for flag options to only display for non-default option,
as per sh0oki's existing code's function.
Conflicts:
	begin/cmdline.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant