Command line API
Hexerator aims to support a wide variety of use cases, so it exposes a lot of different options.
Here is the help generated by hexerator --help
:
Usage: hexerator [OPTIONS] [FILE]
Arguments:
[FILE] The file to read
Options:
-j, --jump <offset> Jump to offset on startup
--hard-seek <offset> Seek to offset, consider it beginning of the file in the editor
--take <bytes> Read only this many bytes
--read-only Open file as read-only, without writing privileges
--stream Specify source as a streaming source (for example, standard streams). Sets read-only attribute
--recent Open most recently used file
--meta <path> Load this metafile
--version Show version information and exit
--debug Start with debug logging enabled
--spawn-command <command>... Spawn and open memory of a command with arguments (must be last option)
--look-for-proc <name> When spawning a command, open the process list with this filter, rather than selecting a pid
--autoreload [<interval>] Automatically reload the source for the current buffer in millisecond intervals (default:250)
--autoreload-only-visible Only autoreload the data visible in the current layout
--autosave Automatically save if there is an edited region in the file
--layout <name> Open this layout on startup instead of the default
--load-plugin <LOAD_PLUGIN> Load a dynamic library plugin at startup
--new <length> Allocate a new (zero-filled) buffer. Also creates the provided file argument if it doesn't exist
-h, --help Print help