Skip to content

Commit

Permalink
(fix) O3-3370: Also fix handling when not specifying a backend (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher authored Jan 8, 2025
1 parent 4b828fa commit 78b7975
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/tooling/openmrs/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ yargs.command(
type: 'string',
})
.option('backend', {
default: 'https://dev3.openmrs.org/',
default: 'https://dev3.openmrs.org',
describe: 'The backend to proxy API requests to.',
type: 'string',
coerce: (arg) => (arg.endsWith('/') ? arg.slice(0, -1) : arg),
})
.option('add-cookie', {
default: '',
Expand Down Expand Up @@ -132,9 +133,10 @@ yargs.command(
type: 'string',
})
.option('backend', {
default: 'https://dev3.openmrs.org/',
default: 'https://dev3.openmrs.org',
describe: 'The backend to proxy API requests to.',
type: 'string',
coerce: (arg) => (arg.endsWith('/') ? arg.slice(0, -1) : arg),
})
.option('add-cookie', {
default: '',
Expand Down

0 comments on commit 78b7975

Please sign in to comment.