Skip to content

Commit

Permalink
Try passing in sys.argv[1:] to help with headless mode on windows whe…
Browse files Browse the repository at this point in the history
…n running from the command line.
  • Loading branch information
hsorby committed Mar 28, 2024
1 parent 1ed4c14 commit f3cb5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapclient/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def main():
parser.add_argument("-s", "--headless", action="store_true",
help="operate in headless mode, without a gui. Requires a location of a workflow to be set")
parser.add_argument("-w", "--workflow", help="location of workflow")
args = parser.parse_args()
args = parser.parse_args(sys.argv[1:])

if args.headless and args.workflow is None:
parser.print_help()
Expand Down

0 comments on commit f3cb5c2

Please sign in to comment.