File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export interface TelemetryOptions {
1010export 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]' ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface BuildOptions {
3939/** `astro build` */
4040export 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]' ,
You can’t perform that action at this time.
0 commit comments