Skip to content

Commit

Permalink
remove -H and -h shortcuts from CLI - fixes #1432
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 27, 2022
1 parent 80233c2 commit 5babcd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-horses-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Breaking: remove -H and (conflicting) -h shortcuts from CLI
8 changes: 4 additions & 4 deletions packages/kit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ prog
.command('dev')
.describe('Start a development server')
.option('-p, --port', 'Port')
.option('-h, --host', 'Host (only use this on trusted networks)')
.option('-H, --https', 'Use self-signed HTTPS certificate')
.option('-o, --open', 'Open a browser tab')
.option('--host', 'Host (only use this on trusted networks)')
.option('--https', 'Use self-signed HTTPS certificate')
.action(async ({ port, host, https, open }) => {
try {
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
Expand Down Expand Up @@ -118,9 +118,9 @@ prog
.command('preview')
.describe('Serve an already-built app')
.option('-p, --port', 'Port', 3000)
.option('-h, --host', 'Host (only use this on trusted networks)', 'localhost')
.option('-H, --https', 'Use self-signed HTTPS certificate', false)
.option('-o, --open', 'Open a browser tab', false)
.option('--host', 'Host (only use this on trusted networks)', 'localhost')
.option('--https', 'Use self-signed HTTPS certificate', false)
.action(async ({ port, host, https, open }) => {
try {
await check_port(port);
Expand Down

0 comments on commit 5babcd8

Please sign in to comment.