-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-pargs, pgroupt tags, initial genparsers
* Add missing dependency on six * Update pylint, flake8 used in CI * Remove spurious config warning for some unfiltered command line options * Add tags field to positional argument groups. Assign "file-list" tag to file lists from add_library and add_executable * Remove "sortable" flag from root TreeNode class * Custom commands can specify if a positional group is a command line * Custom commands can specify multiple positional groups * `max_pargs_hwrap` does not apply to `cmdline` groups * Remove stale members from `TreeNode` * Format extension.ts with two spaces * Create a tool to generate parsers from `cmake_parse_args`
- Loading branch information
1 parent
0dffe05
commit 752d045
Showing
46 changed files
with
1,157 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
""" | ||
from __future__ import unicode_literals | ||
|
||
VERSION = '0.6.6' | ||
VERSION = '0.6.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# test: legacy_spec | ||
#[=[ | ||
additional_commands = { | ||
"foo": { | ||
"flags": ["BAR", "BAZ"], | ||
"kwargs": { | ||
"HEADERS": "*", | ||
"SOURCES": "*", | ||
"DEPENDS": "*" | ||
} | ||
} | ||
} | ||
]=] | ||
foo(nonkwarg_a nonkwarg_b | ||
HEADERS a.h b.h c.h d.h e.h f.h | ||
SOURCES a.cc b.cc d.cc | ||
DEPENDS foo | ||
bar baz) | ||
|
||
# test: new_spec_dict | ||
#[=[ | ||
additional_commands = { | ||
"foo": { | ||
"pargs": { | ||
"flags": ["BAR", "BAZ"], | ||
"legacy": True, | ||
}, | ||
"kwargs": { | ||
"HEADERS": "*", | ||
"SOURCES": "*", | ||
"DEPENDS": "*" | ||
} | ||
} | ||
} | ||
]=] | ||
foo(nonkwarg_a nonkwarg_b | ||
HEADERS a.h b.h c.h d.h e.h f.h | ||
SOURCES a.cc b.cc d.cc | ||
DEPENDS foo | ||
bar baz) | ||
|
||
# test: new_spec_list | ||
#[=[ | ||
additional_commands = { | ||
"foo": { | ||
"pargs": [{ | ||
"flags": ["BAR", "BAZ"], | ||
"legacy": True, | ||
}], | ||
"kwargs": { | ||
"HEADERS": "*", | ||
"SOURCES": "*", | ||
"DEPENDS": "*" | ||
} | ||
} | ||
} | ||
]=] | ||
foo(nonkwarg_a nonkwarg_b bar baz | ||
HEADERS a.h b.h c.h d.h e.h f.h | ||
SOURCES a.cc b.cc d.cc | ||
DEPENDS foo) | ||
|
||
# test: new_spec_arg_kwargs | ||
#[=[ | ||
additional_commands = { | ||
"foo": { | ||
"pargs": [["*", { | ||
"flags": ["BAR", "BAZ"], | ||
"legacy": True, | ||
}]], | ||
"kwargs": { | ||
"HEADERS": "*", | ||
"SOURCES": "*", | ||
"DEPENDS": "*" | ||
} | ||
} | ||
} | ||
]=] | ||
foo(nonkwarg_a nonkwarg_b | ||
HEADERS a.h b.h c.h d.h e.h f.h | ||
SOURCES a.cc b.cc d.cc | ||
DEPENDS foo | ||
bar baz) | ||
|
||
# test: new_spec_multiple | ||
#[=[ | ||
additional_commands = { | ||
"foo": { | ||
"pargs": ["*", {"flags": ["BAR", "BAZ"]}], | ||
"kwargs": { | ||
"HEADERS": "*", | ||
"SOURCES": "*", | ||
"DEPENDS": "*" | ||
} | ||
} | ||
} | ||
]=] | ||
foo(nonkwarg_a nonkwarg_b | ||
HEADERS a.h b.h c.h d.h e.h f.h | ||
SOURCES a.cc b.cc d.cc | ||
DEPENDS foo | ||
bar baz) | ||
|
||
# test: custom_cmdline | ||
#[=[ | ||
additional_commands = { | ||
"mything": { | ||
"kwargs": { | ||
"MYCOMMAND": { | ||
"pargs": { | ||
"tags": ["cmdline"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
]=] | ||
mything( | ||
foo bar baz | ||
MYCOMMAND | ||
this is a sequence of arguments that are passed to the shell as a command | ||
and should not be wrapped even though the sequence is very long) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.