fix problem when Oni start with number passed as first parameter (#2584) (#2649)

* add force to treat args always as string
This commit is contained in:
borjarus 2018-11-23 22:39:03 +01:00 committed by Akin
parent c64f929269
commit f77d4f0264
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export const start = async (args: string[]): Promise<void> => {
const cssPromise = import("./CSS")
const completionProvidersPromise = import("./Services/Completion/CompletionProviders")
const parsedArgs = minimist(args)
const parsedArgs = minimist(args, { string: "_" })
const currentWorkingDirectory = process.cwd()
const normalizedFiles = parsedArgs._.map(
arg => (path.isAbsolute(arg) ? arg : path.join(currentWorkingDirectory, arg)),