You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(W-16338640): Update logic for backwards compatibility for CLI commands (#139)
* WIP fix consumption of additional flags
* Clean up code
* Update copy for deprecation warning
* Update deprecation message
Remove portion of message to use in command so that command specific syntax is not shared amongst other commands
Copy file name to clipboardExpand all lines: src/command.ts
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ export abstract class Command extends Base {
59
59
constnonExistentFlagsWithValues={...parsed}
60
60
61
61
if(nonExistentFlags&&nonExistentFlags.length>0){
62
-
this.warn(`Using [${nonExistentFlags}] without a '--' (end of options) preceeding them is deprecated. Please use '--' preceeding the flag(s) meant to be passed-though.`)
62
+
this.warn(`You’re using a deprecated syntax with the [${nonExistentFlags}] flag.\nAdd a '--' (end of options) separator before the flags you’re passing through.`)
63
63
for(constflagofnonExistentFlags){
64
64
constkey=flag.replace('--','')
65
65
deleteparsed[key]
@@ -75,6 +75,23 @@ export abstract class Command extends Base {
0 commit comments