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

Allow raw fish option to be set from command line #829

Merged
merged 7 commits into from
Sep 9, 2023

Conversation

AndrielChaoti
Copy link
Contributor

Makes changes necessary to replace the "count raw fish" switch on the command line into a settable option, instead of a toggle.

Other minor changes to output as well.

autofish.lua Outdated Show resolved Hide resolved
docs/autofish.rst Outdated Show resolved Hide resolved
docs/autofish.rst Outdated Show resolved Hide resolved
``-r``, ``--toggle-raw``
(default: on) to toggle letting the script also count your raw fish as part
of your quota. Use it a second time to disable this.
``r``, ``--raw <true | false>``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the example -r commandline below should be updated too

autofish.lua Outdated
set_useRaw(toBool[optArg])
else
qerror("Invalid argument to --raw \"".. optArg .."\". expected boolean")
return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for return -- qerror throws

AndrielChaoti and others added 5 commits September 9, 2023 12:45
Missed optional argument []

Co-authored-by: Myk <[email protected]>
fix text formatting of command output

Co-authored-by: Myk <[email protected]>
fix wording of command description

Co-authored-by: Myk <[email protected]>
@myk002 myk002 merged commit 74ad7e0 into DFHack:master Sep 9, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants