Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

Fixes mode argument with --mode=genanswers #793

Merged
merged 1 commit into from
Aug 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions atomicapp/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,7 @@ def create_parser(self):
none: atomicapp will disable any logging.
If nothing is set and logging to file then 'nocolor' by default.
If nothing is set and logging to tty then 'color' by default.""")

# === DEPLOY PARSER ===
# Create a 'deploy parser' that will include flags related to deploying
# and answers files
deploy_parser = argparse.ArgumentParser(add_help=False)
deploy_parser.add_argument(
globals_parser.add_argument(
"--mode",
dest="mode",
default=None,
Expand All @@ -249,6 +244,11 @@ def create_parser(self):
in cases where a user is not using the Atomic App cli
directly, but through another interface such as the
Atomic CLI. EX: `atomic run <IMAGE> --mode=genanswers`'''))

# === DEPLOY PARSER ===
# Create a 'deploy parser' that will include flags related to deploying
# and answers files
deploy_parser = argparse.ArgumentParser(add_help=False)
deploy_parser.add_argument(
"--dry-run",
dest="dryrun",
Expand Down