Skip to content

Commit f155af2

Browse files
committed
chore: code suggestions
1 parent b981aa4 commit f155af2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/astro/src/cli/telemetry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface TelemetryOptions {
1010
export async function update(subcommand: string, { flags, telemetry }: TelemetryOptions) {
1111
const isValid = ['enable', 'disable', 'reset'].includes(subcommand);
1212

13-
if (flags.help || !isValid) {
13+
if (flags.help || flags.h || !isValid) {
1414
msg.printHelp({
1515
commandName: 'astro telemetry',
1616
usage: '[command]',

packages/astro/src/core/build/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface BuildOptions {
3939
/** `astro build` */
4040
export default async function build(settings: AstroSettings, options: BuildOptions): Promise<void> {
4141
applyPolyfill();
42-
if (options.flags?.help) {
42+
if (options.flags?.help || options.flags?.h) {
4343
printHelp({
4444
commandName: 'astro build',
4545
usage: '[...flags]',

0 commit comments

Comments
 (0)