--print-cmd-oneline

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-05-07 03:00:02 +00:00
parent f55134071f
commit 695bdaa486
2 changed files with 23 additions and 7 deletions

View File

@@ -573,6 +573,14 @@ when building examples that rely on it or running tests for those examples.
Indicate that all packages used by our userland/ examples with --package
are available.
''',
)
self.add_argument(
'--print-cmd-oneline',
action='store_true',
help='''\
Print generated commands in a single line:
https://cirosantilli.com/linux-kernel-module-cheat#dry-run
'''
)
self.add_argument(
'--static',
@@ -1482,6 +1490,7 @@ lunch aosp_{}-eng
self.env = env.copy()
self.sh = shell_helpers.ShellHelpers(
dry_run=self.env['dry_run'],
force_oneline=self.env['print_cmd_oneline'],
quiet=(not show_cmds),
)
self._init_env(self.env)