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

Make input file optional and default to stdin #2

Merged
merged 1 commit into from Dec 6, 2022

Conversation

johshoff
Copy link
Contributor

@johshoff johshoff commented Nov 21, 2022

This is useful for piping the assembled program directly from pioasm, without going through an intermediate file. For example:

pioasm -o hex program.pio | piodisasm.py

It perhaps not obvious that the ? in nargs='?' is interpreted like in a regular expression: zero or one instance. (docs)

This is useful for piping the assembled program directly from pioasm, without
going through an intermediate file. For example:

    pioasm -o hex program.pio | piodisasm.py
@johshoff
Copy link
Contributor Author

Side note: Thanks for making this! It's exactly what I needed. When relying on expressions and definitions, it's a good way to see what they evaluate to.

Copy link
Contributor

@nezza nezza left a comment

Choose a reason for hiding this comment

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

Thanks a lot! Merged!

@nezza nezza merged commit 535104a into ghidraninja:main Dec 6, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants