Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[expo-cli] Validate platform in apply command #1981

Merged
merged 1 commit into from
Apr 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/expo-cli/src/commands/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ type Options = {
export default function(program: Command) {
program
.command('apply [project-dir]')
.option('--platform [platform]', 'Configure only the given platform ("ios" or "android")')
.option(
'-p, --platform [platform]',
'Configure only the given platform ("ios" or "android")',
/^(android|ios)$/i
)
// .option('--interactive', 'TODO: provide a flag where people can see a diff for each option to be applied and approve or reject it')
.description(
'Take the configuration from app.json or app.config.js and apply it to a native project.'
Expand Down