Skip to content

Commit

Permalink
parse dev mode argument (#158)
Browse files Browse the repository at this point in the history
* parse dev mode argument

* update the short flag for dev mode

Replace `-dev` to `-D`

* Updated the short flag for dev mode

* - remove dev mode short flag

Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com>
  • Loading branch information
RushiT0122 and RushiT0122 authored Nov 3, 2022
1 parent 0c066de commit bc3d942
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 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',
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 bc3d942

Please sign in to comment.