Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ALARA Build/TEST

on:
workflow_dispatch:
pull_request:
push:

jobs:
Build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build
run: |
mkdir bld
cd bld
cmake ../
make -j 8
./src/alara -V


33 changes: 12 additions & 21 deletions src/alara.C
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ int main(int argc, char *argv[])

while (argNum<argc)
{
int used_args = 1;

if (argv[argNum][0] != '-')
{
if (inFname == NULL)
Expand Down Expand Up @@ -86,19 +88,6 @@ int main(int argc, char *argv[])
debug(0,"Set debug level to %d.",debug_level);
break;
#endif
/* case 'v':
if (argv[argNum][1] == '\0')
{
verb_level = atoi(argv[argNum+1]);
argNum+=2;
}
else
{
verb_level = atoi(argv[argNum]+1);
argNum++;
}
verbose(0,"Set verbose level to %d.",verb_level);
break; */

case 'v':
if (argv[argNum][1] == '\0')
Expand Down Expand Up @@ -150,18 +139,19 @@ int main(int argc, char *argv[])
break;

case 'o':
int used_args = 1;
if (argv[argNum][1] == '\0')
{
if (argNum<argc-1)
out_file = argv[argNum+1];
used_args++;
{
if (argNum<argc-1)
{
out_file = argv[argNum+1];
used_args++;
}
else
{
{
error(2, "-o requires parameter.");
break;
}
}
}
}
else
out_file = argv[argNum]+1;

Expand All @@ -172,6 +162,7 @@ int main(int argc, char *argv[])
verbose(0, "Verbose output redirected to %s", out_file.c_str());

argNum += used_args;
break;

case 'h':
verbose(-1,helpmsg,argv[0]);
Expand Down