Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
783f87fc
Commit
783f87fc
authored
Jan 23, 2019
by
Jaco Hofmann
Browse files
Force locale in Scala to US for better predictability
parent
71c9fe0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/tapasco/Tapasco.scala
View file @
783f87fc
...
...
@@ -25,6 +25,7 @@ import parser._
import
slurm._
import
java.nio.file.Path
import
scala.concurrent._
import
java.util.Locale
object
Tapasco
{
import
org.slf4j.LoggerFactory
...
...
@@ -68,6 +69,8 @@ object Tapasco {
// scalastyle:off cyclomatic.complexity
// scalastyle:off method.length
def
main
(
args
:
Array
[
String
])
{
Locale
.
setDefault
(
Locale
.
US
);
val
cfgargs
=
if
(
args
.
length
>
0
&&
args
(
0
).
toLowerCase
.
equals
(
"itapasco"
))
args
.
drop
(
1
)
else
args
// try to parse all arguments
val
c
=
CommandLineParser
(
cfgargs
mkString
" "
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment