Skip to content

Commit

Permalink
fix(cli): fixed export pull command line (aws-amplify#8725)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarkarachi authored and akshbhu committed Nov 10, 2021
1 parent 9683797 commit 072b87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amplify-cli/src/commands/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const run = async (context: $TSContext) => {
const isPull = !!(subCommands && subCommands.includes('pull'));
const frontend = getSafeInputOptionsFlag(context, 'frontend');
const rootStackName = getSafeInputOptionsFlag(context, 'rootStackName');
const showPullHelp = (showHelp || frontend || rootStackName) && isPull;
const showPullHelp = (showHelp || !frontend || !rootStackName) && isPull;

if (showHelp && !showPullHelp) {
printer.blankLine();
Expand Down

0 comments on commit 072b87b

Please sign in to comment.