Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 053a03f

Browse files
committed
Force username to be set as part of CLI
1 parent bed2e61 commit 053a03f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

argo_bridge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,14 +1010,15 @@ def check_argo_connection():
10101010

10111011
def parse_args():
10121012
parser = argparse.ArgumentParser(description='Run the Flask server.')
1013-
parser.add_argument('--username', type=str, default='argo_bridge', help='Username for the API requests')
1013+
parser.add_argument('-u', '--username', required=True, type=str, help='Username for the API requests')
10141014
parser.add_argument('--port', type=int, default=7285, help='Port number to run the server on')
10151015
parser.add_argument('--dlog', action='store_true', help='Enable debug-level logging')
10161016
return parser.parse_args()
10171017

10181018

10191019
if __name__ == '__main__':
10201020
args = parse_args()
1021+
BRIDGE_USER = args.username
10211022
debug_enabled = args.dlog
10221023
logging.basicConfig(
10231024
filename=ANL_DEBUG_FP,

0 commit comments

Comments
 (0)