Skip to content

Commit

Permalink
parse dev mode argument
Browse files Browse the repository at this point in the history
  • Loading branch information
RushiT0122 committed Sep 21, 2022
1 parent 0c066de commit b470f8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions singer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def parse_args(required_config_keys):
-d,--discover Run in discover mode
-p,--properties Properties file: DEPRECATED, please use --catalog instead
--catalog Catalog file
-dev, --dev Runs the tap in dev mode
Returns the parsed args object from argparse. For each argument that
point to JSON files (config, state, properties), we will automatically
Expand Down Expand Up @@ -163,6 +164,11 @@ def parse_args(required_config_keys):
action='store_true',
help='Do schema discovery')

parser.add_argument(
'-dev', '--dev',
action='store_true',
help='Runs tap in dev mode')

args = parser.parse_args()
if args.config:
setattr(args, 'config_path', args.config)
Expand Down

0 comments on commit b470f8a

Please sign in to comment.