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

Feature Request: Argbash clean command/output type #186

Open
nea89o opened this issue Dec 31, 2023 · 1 comment
Open

Feature Request: Argbash clean command/output type #186

nea89o opened this issue Dec 31, 2023 · 1 comment

Comments

@nea89o
Copy link

nea89o commented Dec 31, 2023

A command to remove all generated code from a file. This could also just be another output --type. I would love to use this kind of script in combination with gits clean/smudge filters, so i don't have to check changes in the generated code into version control.

@nea89o
Copy link
Author

nea89o commented Nov 2, 2024

For future reference since i do this quite often now:

# Clean
awk '/needed because of Argbash --> m4_ignore/ {f=1;next} /END OF CODE GENERATED BY Argbash/{f=0;next} !f' $filename

# Smudge
argbash $filename -i

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

1 participant