Skip to content
Snippets Groups Projects
Commit c09956fd authored by Justin Kim's avatar Justin Kim
Browse files

ade: Add --native option


`ade configure` and `ade build` have `--native` option, but `install`
and `uninstall` commands doesn't. To install/uninstall a bundle which
is built with `--native`, user should use `ade install --simulator`
because two options actually do same thing.
For the consistency, the option, `--native`, is added.

Reviewed-by: default avatarEmanuele Aina <emanuele.aina@collabora.co.uk>
Signed-off-by: default avatarJustin Kim <justin.kim@collabora.com>
Differential Revision: https://phabricator.apertis.org/D6807
parent 6e8bee2a
No related branches found
No related tags found
No related merge requests found
......@@ -1613,7 +1613,7 @@ if __name__ == '__main__':
install_parser.add_argument('--bundle', help="Path to bundle to install")
install_parser.add_argument('--build-dir', help="Build directory")
group = install_parser.add_mutually_exclusive_group()
group.add_argument('--simulator', help="Use simulator as target", action='store_true')
group.add_argument('--simulator', '--native', help="Use simulator as target", action='store_true')
group.add_argument('--device', help="Use device as target (e.g. user@apertis)")
# Uninstall parser
......@@ -1621,7 +1621,7 @@ if __name__ == '__main__':
uninstall_parser.add_argument('--bundle-id', help="Bundle to uninstall")
uninstall_parser.add_argument('--build-dir', help="Build directory")
group = uninstall_parser.add_mutually_exclusive_group()
group.add_argument('--simulator', help="Use simulator as target", action='store_true')
group.add_argument('--simulator', '--native', help="Use simulator as target", action='store_true')
group.add_argument('--device', help="Use device as target (e.g. user@apertis)")
# Run parser
......@@ -1629,7 +1629,7 @@ if __name__ == '__main__':
run_parser.add_argument('--app', help="Remote path to application to run")
run_parser.add_argument('--build-dir', help="Build directory")
group = run_parser.add_mutually_exclusive_group()
group.add_argument('--simulator', help="Use simulator as target", action='store_true')
group.add_argument('--simulator', '--native', help="Use simulator as target", action='store_true')
group.add_argument('--device', help="Use device as target (e.g. user@apertis)")
run_parser.add_argument('args', help="Arguments to pass to application", nargs=argparse.REMAINDER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment