Skip to content

Commit bc3d942

Browse files
RushiT0122RushiT0122
andauthored
parse dev mode argument (#158)
* 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>
1 parent 0c066de commit bc3d942

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

singer/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def parse_args(required_config_keys):
134134
-d,--discover Run in discover mode
135135
-p,--properties Properties file: DEPRECATED, please use --catalog instead
136136
--catalog Catalog file
137+
--dev Runs the tap in dev mode
137138
138139
Returns the parsed args object from argparse. For each argument that
139140
point to JSON files (config, state, properties), we will automatically
@@ -163,6 +164,11 @@ def parse_args(required_config_keys):
163164
action='store_true',
164165
help='Do schema discovery')
165166

167+
parser.add_argument(
168+
'--dev',
169+
action='store_true',
170+
help='Runs tap in dev mode')
171+
166172
args = parser.parse_args()
167173
if args.config:
168174
setattr(args, 'config_path', args.config)

0 commit comments

Comments
 (0)