-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add --silent option #201
Add --silent option #201
Conversation
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.
LGTM, but I'd like there to be at least one more review before merging.
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.
lgtm
PR checks complain about black formatting
Could also replace the three flags ("interactive", "devicecode", "silent") with a single parameter "mode" that takes a parameter ("interactive", "devicecode", "silent") with "interactive" as the default.
… On 22 May 2024, at 11:49, Runar Ask Johannessen ***@***.***> wrote:
@equinor-ruaj commented on this pull request.
In src/sumo/wrapper/login.py <#201 (comment)>:
> @@ -33,7 +34,7 @@ def get_parser() -> ArgumentParser:
"--interactive",
dest="interactive",
action="store_true",
- default=False,
+ default=True,
Seems correct. The current config will always set interactive to True not matter what.
Should either remove default completely or set default=False
—
Reply to this email directly, view it on GitHub <#201 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAIDQOSKJM633WGNUOEKCUTZDRS4BAVCNFSM6AAAAABIBLFKQKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANZQGY4TMMZUGM>.
You are receiving this because your review was requested.
|
Will give this a try 👍 |
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.
LGTM.
Edit: replace --silent, --interactive and --devicecode with a --mode flag