-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse dev mode argument #158
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ def strptime(dtime): | |
... | ||
ValueError: time data '2018-01-01T00:00:00' does not match format '%Y-%m-%dT%H:%M:%SZ' | ||
|
||
Can't parse non-UTC DTs | ||
Can't parse non-UTC DTsx | ||
>>> strptime("2018-01-01T00:00:00-04:00") | ||
Traceback (most recent call last): | ||
... | ||
|
@@ -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 | ||
-D, --dev Runs the tap in dev mode | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest that having a shortcode for this isn't useful since it reduces readability at the savings of 3 characters, maybe if it was There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On that note, maybe not critical right now, but the docstring above the changed lines mentions the SPEC and BEST_PRACTICES documents in the getting started repo, so it might be good to eventually update those. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the short flag |
||
|
||
Returns the parsed args object from argparse. For each argument that | ||
point to JSON files (config, state, properties), we will automatically | ||
|
@@ -163,6 +164,11 @@ def parse_args(required_config_keys): | |
action='store_true', | ||
help='Do schema discovery') | ||
|
||
parser.add_argument( | ||
'-dev', '--dev', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it needs to be changed here too |
||
action='store_true', | ||
help='Runs tap in dev mode') | ||
|
||
args = parser.parse_args() | ||
if args.config: | ||
setattr(args, 'config_path', args.config) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like an errant
x
committed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted errant
x
.