Skip to content

Commit 7b34258

Browse files
Abel Milashclaude
andcommitted
Revert argparse change in walkthrough, restore input() prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dc5834e commit 7b34258

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

examples/advanced/walkthrough.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- pip install azure-identity
2020
"""
2121

22-
import argparse
22+
import sys
2323
import json
2424
import time
2525
from enum import IntEnum
@@ -69,11 +69,6 @@ def backoff(op, *, delays=(0, 2, 5, 10, 20, 20)):
6969

7070

7171
def main():
72-
parser = argparse.ArgumentParser(description="Dataverse SDK Walkthrough")
73-
parser.add_argument("--url", help="Dataverse org URL (e.g. https://yourorg.crm.dynamics.com)")
74-
args = parser.parse_args()
75-
base_url = args.url.rstrip("/")
76-
7772
print("=" * 80)
7873
print("Dataverse SDK Walkthrough")
7974
print("=" * 80)
@@ -85,6 +80,13 @@ def main():
8580
print("1. Setup & Authentication")
8681
print("=" * 80)
8782

83+
base_url = input("Enter Dataverse org URL (e.g. https://yourorg.crm.dynamics.com): ").strip()
84+
if not base_url:
85+
print("No URL entered; exiting.")
86+
sys.exit(1)
87+
88+
base_url = base_url.rstrip("/")
89+
8890
log_call("InteractiveBrowserCredential()")
8991
credential = InteractiveBrowserCredential()
9092

0 commit comments

Comments
 (0)