Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect flag breaks ./single.sh #107

Open
MechEng70 opened this issue Jan 9, 2024 · 1 comment
Open

Incorrect flag breaks ./single.sh #107

MechEng70 opened this issue Jan 9, 2024 · 1 comment

Comments

@MechEng70
Copy link

When running ./single.sh get the error that there is an incorrect flag. When the command:

go run cmd/plannergen/plannergen.go --config "${CFG}"

is run by itself, it creates the tex files in the out directory.
GO Version: go version go1.21.6 darwin/amd64


❯ echo $CFG
cfg/base.yaml,cfg/template_breadcrumb.yaml,cfg/sn_a5x.breadcrumb.default.yaml

❯ ./single.sh
Incorrect Usage. flag needs an argument: -config

NAME:
   plannergen - A new cli application

USAGE:
   plannergen [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --config value
   --preview       (default: false)
   --help, -h      show help (default: false)
flag needs an argument: -config
exit status 1
@jasyn
Copy link

jasyn commented Mar 5, 2024

I had the same issue. I added the environment variables setting part to the ./single.sh script itself:

PLANNER_YEAR=2024
PASSES=1 
CFG="cfg/base.yaml,cfg/template_breadcrumb.yaml,cfg/sn_a5x.breadcrumb.default.yaml" 
NAME="sn_a5x.breadcrumb.default"

It worked as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants