Skip to content

Commit

Permalink
Set name arg required to True
Browse files Browse the repository at this point in the history
  • Loading branch information
alaydshah committed Sep 12, 2024
1 parent 17dd2b7 commit 4a198eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/fedml/computing/scheduler/slave/client_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
parser.add_argument("--local_on_premise_platform_port", "-lpp", type=int, default=80)
parser.add_argument("--marketplace_type", "-mpt", type=str, default=MarketplaceType.SECURE.name)
parser.add_argument("--price_per_hour", "-pph", type=str, default="0.0")
parser.add_argument("--name", "-n", type=str, default="")
parser.add_argument("--name", "-n", type=str, required=True)

args = parser.parse_args()
args.user = args.user
Expand Down
2 changes: 1 addition & 1 deletion python/fedml/computing/scheduler/slave/client_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def logout():
parser.add_argument("--local_on_premise_platform_port", "-lpp", type=int, default=80)
parser.add_argument("--marketplace_type", "-mpt", type=str, default=MarketplaceType.SECURE.name)
parser.add_argument("--price_per_hour", "-pph", type=str, default="0.0")
parser.add_argument("--name", "-n", type=str, default="")
parser.add_argument("--name", "-n", type=str, required=True)

args = parser.parse_args()
args.user = args.user
Expand Down

0 comments on commit 4a198eb

Please sign in to comment.