@@ -78,11 +78,12 @@ export function doMadwizard(
7878 }
7979
8080 // decide which profile to use
81- const profile =
82- parsedOptions . p ||
83- parsedOptions . profile || // specified on command line
84- ( await import ( "madwizard" ) . then ( ( _ ) => _ . Profiles . lastUsed ( ) ) ) || // last used profile
85- "default" // the default, if no lastUsed is found!
81+ const profile = parsedOptions . n
82+ ? undefined
83+ : parsedOptions . p ||
84+ parsedOptions . profile || // specified on command line
85+ ( await import ( "madwizard" ) . then ( ( _ ) => _ . Profiles . lastUsed ( ) ) ) || // last used profile
86+ "default" // the default, if no lastUsed is found!
8687
8788 await cli (
8889 [
@@ -119,14 +120,14 @@ export function doMadwizard(
119120 }
120121}
121122
123+ export const flags = {
124+ boolean : [ "u" , "V" , "n" , "q" , "i" , "y" ] ,
125+ configuration : { "populate--" : true } ,
126+ alias : { quiet : [ "q" ] , interactive : [ "i" ] , yes : [ "y" ] , profile : [ "p" ] , verbose : [ "V" ] } ,
127+ }
128+
122129/** Register Kui Commands */
123130export default function registerMadwizardCommands ( registrar : Registrar ) {
124- const flags = {
125- boolean : [ "u" , "V" , "n" , "q" , "i" , "y" ] ,
126- configuration : { "populate--" : true } ,
127- alias : { quiet : [ "q" ] , interactive : [ "i" ] , yes : [ "y" ] , profile : [ "p" ] , verbose : [ "V" ] } ,
128- }
129-
130131 registrar . listen ( "/profile" , doMadwizard ( true , "profile" ) )
131132
132133 registrar . listen (
0 commit comments